On 8/17/06, Sean Schertell <[EMAIL PROTECTED]> wrote:
> --- modulalib/views.py ---
> http://rafb.net/paste/results/fzWg1g26.html
The problem is in the staticpages() function. Specifically, the
default value for the context_processor argument is None -- which
means you're passing None to t.render(). Instead, t.render() needs to
be passed a Context object. Add these lines as the first lines within
the function:
if context_processors is None:
context_processors = Context()
Also, make sure to do a "from django.template import Context" atop the module.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---