Hi,

I'm trying to use the provided login view for my new application,
but whenever I use it, the first time i submit the login request,
AuthenticationForm returns the error
"Your Web browser doesn't appear to have cookies enabled. Cookies are 
required for logging in."

The second time i submit the login, it works. Obviously, I do
have cookies enabled. I have tried it in multiple browsers also
and get exactly the same behaviour (IE6, Firefox, Opera and Konqueror).

My urls look like this :

from django.contrib.auth.views import login
urlpatterns = patterns('',
                       (r'^login/$', login, {'template_name': 
'registration/login.html'}),
                       (r'^logout/$', logout, {'template_name': 
'registration/logout.html'}),
)


I am running my server under the hostname of "localhost".
When I clear my cookies and then load the login page (which is
a simple generic template view), I can see that there are no cookies set.
The cookie only appears after I submit the first login request.

As I have written no view code myself for this, I'm at a loss as to what I'm
doing wrong.

Can anyone help me out?

Thanks,

Mike


--~--~---------~--~----~------------~-------~--~----~
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