slight change... (r'^about/$', 'django.views.generic.simple.direct_to_template', { 'template': 'main.html', 'extra_context': { 'about': True, } }),
On Sep 8, 3:44 pm, "Abdallah El Guindy" <[EMAIL PROTECTED]> wrote: > Hey all, > > I want to use the generic view direct_to_template and to pass to it extra > parameters in the urls.py > > I tried doing the following but doesn't work > > (r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': > 'main.html'}, extra_context={'about': True}), > > What am I missing? > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---