RequestContext to a login form

2007-06-14 Thread JP
Hi, I trying to avoid that any user not validated enter to my site pages, I've read several times the section: "The login_required decorator" in: http://www.djangoproject.com/documentation/authentication/ and works fine, except when someone tries to access the page directly (giving the full lin

Re: RequestContext to a login form

2007-06-14 Thread JP
Well I figure it out the issue, when you use django.contrib.auth.views.login, the destination template ("registration/login.html" or whatever you use) has to invoke the form wrapper with the name "form" e.g. "{{ form.username}}" this is mandatory, I was trying to use another convenient name. On