Ask Your Question
0

RECAPTCHA_USE_SSL = True in settings.py?

asked 2012-09-23 10:35:23 -0500

this post is marked as community wiki

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.

edit retag flag offensive close merge delete

Comments

The problem must be above that line.

Evgeny gravatar imageEvgeny ( 2012-09-23 10:42:26 -0500 )edit

hm, 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 git clone. I also checked and added the path to the PYTHON PATH, but no change.

neurix gravatar imageneurix ( 2012-09-23 10:51:09 -0500 )edit

Hmm, what is the version of python you are using?

Evgeny gravatar imageEvgeny ( 2012-09-23 19:20:42 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-09-23 18:14:15 -0500

this post is marked as community wiki

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'),) )

edit flag offensive delete link more

Comments

Thank you! Fixed in the repository.

Evgeny gravatar imageEvgeny ( 2012-09-23 19:25:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-09-23 10:35:23 -0500

Seen: 301 times

Last updated: Sep 23 '12