On Fri, 2006-06-30 at 16:23 -0400, Jay Parlar wrote:
> > render_to_response already takes a
'context_instance' keyword argument
> > which can be used to specify the Context class to
use, so you can just
> > do
> >
> > from django.template import RequestContext
> > return render_to_response('foo.html', {'form':
form},
> > context_instance=RequestContext)
> >
>
> That should be:
>
> context_instance=RequestContext(request))
Thanks to both of you. I actually saw the context_instance
argument and
didn't put two and two together.
Todd
--~--~---------~--~----~------------~-------~--~----~
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
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|