| 1 | initial version | |
I have installed a version of Askbot on my local machine (Mac OSX). It works fine, except that it won't let me lot into the admin at all, so I cannot create an admin user.
I get the message "CSRF verification failed. Request aborted." when I try to log into admin/create a user profile.
I see previous threads suggest this is due to to mis-configuration of CSRF_COOKIE_DOMAIN in settings.py. I have set this to 'localhost' -- this obviously is not working.
A separate thread on Django suggested I solve the problem by adding two lines to settings.py Middleware section -- this did not work either:
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfResponseMiddleware',
Any suggestions for me?
| 2 | edited to format a variable |
I have installed a version of Askbot on my local machine (Mac OSX). It works fine, except that it won't let me lot into the admin at all, so I cannot create an admin user.
I get the message "CSRF verification failed. Request aborted." when I try to log into admin/create a user profile.
I see previous threads suggest this is due to to mis-configuration of CSRF_COOKIE_DOMAIN CSRF_COOKIE_DOMAIN in settings.py. I have set this to 'localhost' -- this obviously is not working.
A separate thread on Django suggested I solve the problem by adding two lines to settings.py Middleware section -- this did not work either:
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfResponseMiddleware',
Any suggestions for me?
I have installed a version of Askbot on my local machine (Mac OSX). It works fine, except that it won't let me lot into the admin at all, so I cannot create an admin user.
I get the message "CSRF verification failed. Request aborted." when I try to log into admin/create a user profile.
I see previous threads suggest this is due to to mis-configuration of CSRF_COOKIE_DOMAIN in settings.py. I have set this to 'localhost' -- this obviously is not working.
A separate thread on Django suggested I solve the problem by adding two lines to settings.py Middleware section -- this did not work either:
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfResponseMiddleware',
Any suggestions for me?
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.