On 6/30/06, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 6/30/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
> > I find that just about all of my HttpResponse objects have a
> > RequestContext inside. How would people feel about adding another
> > function to django.shortcuts parallel to render_to_response?
>
> 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))

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to