Tried to login, and got the following exception. Looks like there needs to be a 'CSRF_FAILURE_VIEW' variable in settings.py
AttributeError at /account/signin/ 'Settings' object has no attribute 'CSRF_FAILURE_VIEW' Request Method: POST Request URL: http://test.com:8000/account/signin/ Exception Type: AttributeError Exception Value: 'Settings' object has no attribute 'CSRF_FAILURE_VIEW' Exception Location: /usr/local/lib/python2.6/site-packages/django/utils/functional.py in __getattr__, line 276 Python Executable: /usr/local/bin/python Python Version: 2.6.6
Hi Benoit,
Yes the settings.py file will need to be modified.
Add:
CSRF_COOKIE_NAME = 'somename'
CSRF_COOKIE_DOMAIN = 'example.com' #your domain name
and to TEMPLATE_CONTEXT_PROCESSORS add:
'django.core.context_processors.csrf',
That CSRF_FAILURE_VIEW is missing is a defect, but you only see that when there is a csrf error, which hopefully will go away soon.
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 siteAsked: 2011-04-25 09:14:59 -0500
Seen: 768 times
Last updated: Apr 25 '11
Problem with long lines in body of question
Some permalinks to specific question revisions go to 404
Is there a way to list all the unfixed bugs in Askbot?
question get_absolute_url doesn't apply language to url
KeyError: On clicking "manage login methods"
Bug: SocketServer.py timed out errors on console
Bug: wmd editor blows it on bullets
Wrong original author in accept error message?
"Images cannot be posted anonymously" when user clicks on "Login/Sign up to post"
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.