On Tue, May 20, 2008 at 10:32 AM, Andrew English
<[EMAIL PROTECTED]> wrote:
> Do I need to explicitly call authenticate and login in my own view to
> populate the user data? From what I read, it seems that the
> django.contrib.auth.views.login does that automatically.
There's a difference
My view function uses the login required decorator:
@login_required(redirect_field_name='next')
def index(request):
lists = List.objects.filter(user=request.user)
return render_to_response('base.html', {'lists': lists})
This directs them to the login page:
LOGIN_URL = '/todone/list/login/'
2 matches
Mail list logo