ok. my extremely hackish fix was to add this to the included module's
url section. is there a better way to do this?
def add_context(context):
if(isinstance(context, dict)):
for key in context: info_dict['extra_context'][key] =
context[key]
--~--~-~--~~-
Just a minor revision to the bottom example
> -- project which uses module_foo
>
> urlpatterns = (r'^admin/', include('module_foo'),
> {'extra_context' : {'foo2' : expression}}),)
--~--~-~--~~~---~--~~
You received this message because you are sub
Perhaps I'm missing something in the documentation, but is this not
possible with generic views? Here's an example below.
--included module_foo
info_dict = { 'extra_context': {'some_var1': expression} }
urlpatterns = patterns('django.views.generic.list_detail',
(r'^$', 'object_list', dic
3 matches
Mail list logo