On Wed, 2007-06-13 at 07:31 +0000, Dushyant Sharma wrote:
> how can i use it with HttpResponseRedirect()
> 
> like if i wish to use it as return HttpResponseRedirect('/someurl',
> RequestContext(request))

You don't pass a context to HttpResponseRedirect because it doesn't
render a template.

However, if you look at the link I posted earlier, you'll see that
setting up the authentication middleware provides the request object and
access to logged in users in every single template by default. At least
every template that is passed a RequestContext, but that is under your
control in your views and is done by default for generic views.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to