Re: direct_to_template, extra_context

2007-02-28 Thread patrick k.
thanks a lot. that´s working. patrick Am 27.02.2007 um 18:24 schrieb Joseph Kocherhans: > > On 2/27/07, va:patrick.kranzlmueller <[EMAIL PROTECTED]> > wrote: >> >> from django.conf.urls.defaults import * >> >> urlpatterns = patterns('', >> (r'^stars/',

Re: direct_to_template, extra_context

2007-02-27 Thread Joseph Kocherhans
On 2/27/07, va:patrick.kranzlmueller <[EMAIL PROTECTED]> wrote: > > from django.conf.urls.defaults import * > > urlpatterns = patterns('', > (r'^stars/', 'django.views.generic.simple.direct_to_template', > {'template': 'site/stars/stars_overview.html'}, extra_context= > {'category':

Re: direct_to_template, extra_context

2007-02-27 Thread Mike
It looks like multiple dictionaries are being passed to the view. Should 'extra_context' be included in the first one (just like the 'template' argument)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: direct_to_template, extra_context

2007-02-27 Thread va:patrick.kranzlmueller
from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^stars/', 'django.views.generic.simple.direct_to_template', {'template': 'site/stars/stars_overview.html'}, extra_context= {'category': 'stars', 'subcategory': 'none'}), ) isn´t that supposed to work? did I miss

Re: direct_to_template, extra_context

2007-02-27 Thread Joseph Kocherhans
On 2/27/07, va:patrick.kranzlmueller <[EMAIL PROTECTED]> wrote: > > why doesn´t this work? > (r'^stars/', 'django.views.generic.simple.direct_to_template', > {'template': 'site/stars/stars_overview.html'}, extra_context= > {'category': 'stars', 'subcategory': 'none'}), > > the error is "invalid

direct_to_template, extra_context

2007-02-27 Thread va:patrick.kranzlmueller
why doesn´t this work? (r'^stars/', 'django.views.generic.simple.direct_to_template', {'template': 'site/stars/stars_overview.html'}, extra_context= {'category': 'stars', 'subcategory': 'none'}), the error is "invalid syntax". thanks, patrick