Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Ahhh! If I had been more explicit in giving you my code, we might have seen the problem sooner! The problem is that my login form is on the sidebar of my base.html - it appears on my homepage. My homepage renders directly to a template. So, the POST from my homepage goes to the login view from

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Malcolm Tredinnick
Hey Mike, On Sat, 2007-06-09 at 16:53 +0100, Mike H wrote: > Malcolm Tredinnick wrote: > > Assuming you have the SessionMiddleware installed, you will have a > > session created whenever you access a page that Django is responsible > > for. > > > > > > Thanks, exactly what I needed to know :)

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Malcolm Tredinnick wrote: > Assuming you have the SessionMiddleware installed, you will have a > session created whenever you access a page that Django is responsible > for. > > Thanks, exactly what I needed to know :) This is not happening. After the first page view, I have no session. Mike

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Ok, a little progress on this. This is what is currently happening : I have no cookies. I go to the login page. No cookies are set. I submit the page. The test cookie is checked as part of that request. It fails. A session is still started however, and a sessionid cookie is set. set_test_cooki

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 16:33 +0100, Mike H wrote: > Hi Malcolm, > > I'm more than willing to help track down the error (as if I dont get it > fixed, I cant use Django! Asking customers to log in twice wont go down > well...) > > I have a question though : After the first load of the login page,

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Hi Malcolm, I'm more than willing to help track down the error (as if I dont get it fixed, I cant use Django! Asking customers to log in twice wont go down well...) I have a question though : After the first load of the login page, should a session have been started for me? Or does the sessio

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 15:48 +0100, Mike H wrote: > 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. Cooki

django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
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 t