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 Jun 14, 11:18 am, JP <[EMAIL PROTECTED]> wrote:
> 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 link), in this case it redirects to my login page,
> but, does't fill the form wrapper in the
> template so my login template appears with no login form.
>
> Thanks for your help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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