Re: csrf error on login and admin

2010-02-11 Thread Nixarn
Ok. Just so anyone browsing this later. The weird timeout error was just a stupid javascript bug. And I blamed tornado first, then after giving fastcgi a shot and still getting the error I blamed nginx. Then after trying apache2 + wsgi and still getting the same timeout I blamed linode. Then after

Re: csrf error on login and admin

2010-02-07 Thread Nixarn
Ok. Most likely the problem is when nginx is giving me 499 (client timeout) errors. On Feb 7, 3:50 pm, Nixarn wrote: > Hmm apparently doesn't work anymore gah... hrmp. Looking into it. > > Niklas > > On Feb 7, 3:18 pm, Nixarn wrote: > > > > > Having the same problem with the dev version of djang

Re: csrf error on login and admin

2010-02-07 Thread Nixarn
Hmm apparently doesn't work anymore gah... hrmp. Looking into it. Niklas On Feb 7, 3:18 pm, Nixarn wrote: > Having the same problem with the dev version of django. I just can't > get into the Admin. > > Works fine in Chrome for some reason but with Firefox or IE I get: > > 403 Forbidden > > CSRF

Re: csrf error on login and admin

2010-02-07 Thread Nixarn
Might have gotten somewhere with this. I'm using nginx and rewriting urls with www to be without www. And in firefox I seem to be getting the following weirdness in firebug: domainname.com, status: timeout, domain: domainname.com, size: 1.8kb, time: 26ms domainname.com, status: 200 OK, domain: d

Re: csrf error on login and admin

2010-02-07 Thread Nixarn
Having the same problem with the dev version of django. I just can't get into the Admin. Works fine in Chrome for some reason but with Firefox or IE I get: 403 Forbidden CSRF verification failed. Request aborted. Reason given for failure: CSRF cookie not set. And I've tried clearing the cache

Re: csrf error on login and admin

2009-12-18 Thread Kenneth Gonsalves
On Wednesday 16 Dec 2009 10:45:49 am Paddy Joy wrote: > Try 'django.middleware.csrf.CsrfMiddleware' instead of > 'django.contrib.csrf.middleware.CsrfMiddleware' > copied and pasted straight from the official docs -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline

Re: csrf error on login and admin

2009-12-15 Thread Paddy Joy
Try 'django.middleware.csrf.CsrfMiddleware' instead of 'django.contrib.csrf.middleware.CsrfMiddleware' Paddy On Dec 15, 4:28 pm, Kenneth Gonsalves wrote: > On Tuesday 15 Dec 2009 9:07:38 am Kenneth Gonsalves wrote: > > > > I tried another browser - same problem of erratic behaviour, at times > >

Re: csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
On Tuesday 15 Dec 2009 9:07:38 am Kenneth Gonsalves wrote: > > I tried another browser - same problem of erratic behaviour, at times > > login works, at other times it does not - forms on site work, but forms > > in admin do not work. Then I thought maybe my webserver was giving the > > problem

Re: csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
On Tuesday 15 Dec 2009 7:13:04 am Kenneth Gonsalves wrote: > > hmm, never happened to me there, I suggest trying another browser. If it > > still continues, no clue, sorry. > > > > I tried another browser - same problem of erratic behaviour, at times > login works, at other times it does not

Re: csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
On Tuesday 15 Dec 2009 7:05:40 am Mike Ramirez wrote: > On Monday 14 December 2009 17:19:02 Kenneth Gonsalves wrote: > > I cleared all cookies - now all forms have stopped working with 'cookie > > not set' csrf error. > > > > hmm, never happened to me there, I suggest trying another browser. If i

Re: csrf error on login and admin

2009-12-14 Thread Mike Ramirez
On Monday 14 December 2009 17:19:02 Kenneth Gonsalves wrote: > I cleared all cookies - now all forms have stopped working with 'cookie not > set' csrf error. > hmm, never happened to me there, I suggest trying another browser. If it still continues, no clue, sorry. Mike -- Excerpts From The Fi

Re: csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
On Tuesday 15 Dec 2009 6:39:10 am Kenneth Gonsalves wrote: > On Tuesday 15 Dec 2009 6:36:44 am Mike Ramirez wrote: > > > problem has cropped up again - I can login, forms work on the website, > > > but not in admin. Login works in admin, but all other forms in admin do > > > not work - giving the c

Re: csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
On Tuesday 15 Dec 2009 6:36:44 am Mike Ramirez wrote: > > problem has cropped up again - I can login, forms work on the website, > > but not in admin. Login works in admin, but all other forms in admin do > > not work - giving the csrf error. I am stuck. > > > > can you be more explicit with the

Re: csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
On Tuesday 15 Dec 2009 6:24:29 am Kenneth Gonsalves wrote: > On Monday 14 Dec 2009 4:59:57 pm Kenneth Gonsalves wrote: > > On Monday 14 Dec 2009 4:20:54 pm Kenneth Gonsalves wrote: > > > I just upgraded to the latest trunk. I get csrf cookie not set error on > > > attempting to log in - both on sit

Re: csrf error on login and admin

2009-12-14 Thread Mike Ramirez
On Monday 14 December 2009 16:54:29 Kenneth Gonsalves wrote: > problem has cropped up again - I can login, forms work on the website, but > not in admin. Login works in admin, but all other forms in admin do not > work - giving the csrf error. I am stuck. > can you be more explicit with the 'c

Re: csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
On Monday 14 Dec 2009 4:59:57 pm Kenneth Gonsalves wrote: > On Monday 14 Dec 2009 4:20:54 pm Kenneth Gonsalves wrote: > > I just upgraded to the latest trunk. I get csrf cookie not set error on > > attempting to log in - both on site and in admin. I have added the > > middleware as prescribed an

Re: csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
On Monday 14 Dec 2009 4:51:19 pm Gopalasivam Palaniappan wrote: > > I just upgraded to the latest trunk. I get csrf cookie not set error on > > attempting to log in - both on site and in admin. I have added the > > middleware as prescribed and also added the {% csrf_token %} within the > > form in

Re: csrf error on login and admin

2009-12-14 Thread Gopalasivam Palaniappan
> I just upgraded to the latest trunk. I get csrf cookie not set error on > attempting to log in - both on site and in admin. I have added the middleware > as prescribed and also added the {% csrf_token %} within the form in my login > form. I am not using a custom view as I am using the auth login

Re: csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
On Monday 14 Dec 2009 4:20:54 pm Kenneth Gonsalves wrote: > I just upgraded to the latest trunk. I get csrf cookie not set error on > attempting to log in - both on site and in admin. I have added the > middleware as prescribed and also added the {% csrf_token %} within the > form in my login f

csrf error on login and admin

2009-12-14 Thread Kenneth Gonsalves
hi, I just upgraded to the latest trunk. I get csrf cookie not set error on attempting to log in - both on site and in admin. I have added the middleware as prescribed and also added the {% csrf_token %} within the form in my login form. I am not using a custom view as I am using the auth login