hi

some time back I had reported that csrf was not working for me on one site. I 
tried to replicate the error by making a simple minimal site with only two 
forms. But could not. I then noticed that the csrf middleware in settings.py 
which was generated by django was in the *3rd* position. Whereas in the site I 
was having trouble with had it in the *1st* position. The documentation 
specifies that the middleware should be *before* certain view middleware, but 
does not specify it should be *after* anything specific. I admit even by 
putting it in the first place, my test app could not replicate the error. (the 
error being that when I have several tabs open - one on admin in my local 
machine, on the actual site on my local machine, and two more for admin and 
site in production, a lot of csrf errors get thrown - somethings work and some 
do not. Some work once but not the second time)
-- 
regards
Kenneth Gonsalves
Senior Project Officer
NRC-FOSS
http://nrcfosshelpline.in/web/
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to