I have one project with two apps.
I want to show a homepage that pulls in the two apps as homepage
widgets.
I tried the following approach...
urlpatterns = patterns('',
(r'^$', 'myproj.app1.views.index'),
(r'^$', 'myproj.app2.views.index'),
...
...but what ended up happening is that only the bl
I'm quite new to Python and Django so please bear with me as I'm more
of an HTML coder/designer by trade. I'm trying to do something that
to me seems simple but apparently isn't.
Basically, I have 2 separate "apps" which are really just widgets for
a homepage that contain a link and text that I
If I do that, I get this error:
KeyError at /
'link'
Request Method: GET
Request URL:http://localhost:8080/
Exception Type: KeyError
Exception Value:'link'
--~--~---
I think I see what you are getting at. In my views.py, I was able to
define my context which is why it worked when I initially tried
mapping the app to the URL. But in the template tag, the context is
not defined. Thing is, how do you define the context in the template
tag?
--~--~-~--
Still fuzzy to me. :) Alas... thanks for your help anyway!
I did end up using a different approach and have been successful (so
far) with it. I've put all my widgets under the same "main" app and
used block tags instead. That seems to be working out well for my
purposes. It still bugs me that
5 matches
Mail list logo