asked 2012-09-23 10:35:23 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
Hi,
I just reinstalled Askbot as a stand-alone app and after completing askbot-setup, I tried to start the django server to test the installation. While doing so, I encountered the following error:
Traceback (most recent call last):
File "manage.py", line 4, in <module>
import settings # Assumed to be in the same directory.
File "/Users/hannes/Development/test_code/askbot2/settings.py", line 237
RECAPTCHA_USE_SSL = True
^
SyntaxError: invalid syntax
I can't really see where the problem with the line 237 (and the lines in the settings.py above) is. It seems that due to the syntax error, manage.py can't load the settings.py and breaks. Is that correct?
Thank you for your answers.
answered 2012-09-23 18:14:15 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
There seems to be a typo in the seetins.py file of the development branch. Evgeny was right, the code above wasn't correct.
The correct line 233 and below should be: STATICFILES_DIRS = ( ('default/media', os.path.join(ASKBOT_ROOT, 'media'),) )
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: 2012-09-23 10:35:23 -0500
Seen: 56 times
Last updated: Sep 23 '12
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
The problem must be above that line.
Evgeny ( 2012-09-23 10:42:26 -0500 )edithm, i checked the lines above 237 before posting but could not find a syntax error. Strange also that it happens with the untouched code right after
neurix ( 2012-09-23 10:51:09 -0500 )editgit clone. I also checked and added the path to thePYTHON PATH, but no change.Hmm, what is the version of python you are using?
Evgeny ( 2012-09-23 19:20:42 -0500 )edit