Re: How does django.contrib.auth.views.login work?

2009-01-14 Thread scelerat
On Jan 9, 9:16 am, Brian Neal wrote: > If you use RequestContext and have the settings in your > TEMPLATE_CONTEXT_PROCESSORS, then the user variable will be available > for use in your templates. Check out: > >

Re: How does django.contrib.auth.views.login work?

2009-01-09 Thread Brian Neal
On Jan 9, 11:06 am, scelerat wrote: > Hi, I'm new to Django and am trying to figure out how to make > authentication work in any view. > > First off, I have a base template which has a conditional like this: > > {% if user.is_authenticated %} > Yay! > {% else %} > Boo. > {%

How does django.contrib.auth.views.login work?

2009-01-09 Thread scelerat
Hi, I'm new to Django and am trying to figure out how to make authentication work in any view. First off, I have a base template which has a conditional like this: {% if user.is_authenticated %} Yay! {% else %} Boo. {% endif %] In an accounts/urls.py, I add a line like this: urlpatterns =