asked 2011-12-06 01:02:48 -0500william
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:
Any suggestions for me?
answered 2011-12-14 02:28:03 -0500Basel Shishani
Sorry this is not an answer, but I can't add comments - probably not available for new users.
I'm having the exact same issue on Debian Squeeze. I get it when I follow 'Create a password-protected account' for creating the first (admin) account:
I Installed Askbot (and django) using pip. I tried both localhost and the ip style, and tried everything mentioned above:
added 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfResponseMiddleware',
'django.core.context_processors.csrf' is there.
The CSRF token is there in the form, but I notice there are two of them - is that normal ?!
<form id="signin-form" method="post" action="/account/signin/"><div style='display:none;'> <input type='hidden' id='csrfmiddlewaretoken' name='csrfmiddlewaretoken' value='0e488724a595cc9099ff83aa7ee2ac27' /></div> <div style='display:none'> <input type='hidden' name='csrfmiddlewaretoken' value='0e488724a595cc9099ff83aa7ee2ac27' /></div>
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2011-12-06 01:02:48 -0500
Seen: 661 times
Last updated: Mar 13 '12