On Feb 12, 1:54 am, bruno desthuilliers
<bruno.desthuilli...@gmail.com> wrote:
> On Feb 12, 9:40 am, paul <phart...@gmail.com> wrote:
>
> > hi -- after I do a login that successfully goes through a custom
> > authenticate() and django login(), I get redirected to a web page that
> > is build off of a template that prints out the value of
> > {{ user.is_authenticated }}.  This always returns False, and after
> > more interrogation I discovered that user is AnonymousUser.  I have
> > read the Django docs several times over (TEMPLATE_CONTEXT_PROCESSORS
> > has django.core.context_processors.auth,
>
> Do you have the required middlewares  too ?

Yes, the middlewares are installed

> > and I'm sending the
> > successful login web page as render_to_response(template, directory,
> > context_instance(RequestContext(request)).
>
> From the view doing the auth and login ?

I'm using the Django-provided view to do the auth & login.  When the
login is successful, it sends out a HttpResponseRedirect.  The login
page then asks for the URL to the next page, which goes through
urls.py and to another view that provides the RequestContext to
provide the "successful login page".

paul

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to