List Info

Thread: django.shortcuts.render_with_request_context() ?




django.shortcuts.render_with_request_con text() ?
user name
2006-06-30 20:28:14
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-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )