Ask Your Question
1

Not able to configure ASKBOT as seperate django application

asked 2011-11-17 06:49:58 -0600

anonymous user

Anonymous

I wanted try this Askbot so downloaded to my home folder, askbot-setup script worked but if try to run manage.py it gives me following error -

Error: Can't find the file 'settings.py' in the directory containing './manage.py'. It appears you've customized things. You'll have to run django-admin.py, passing it your settings module. (If the file settings.py does indeed exist, it's causing an ImportError somehow.)

I'm setting my pythonpath to same as the container directory of askbot. I'm new to django & python, please help me to sort this problem.

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-11-17 07:28:55 -0600

Evgeny gravatar image

Hello, the pythonpath must also include the parent directory of your whole django project - the one that usually contains settings.py.

If you already had settings.py before adding askbot - then you'll need to update the settings.py and urls.py manually. askbot-setup is not attempting to fix the project files.

It also may happen that there is an error during execution of the settings.py file - in that case some debugging might help to figure out what goes wrong - just place print statement somewhere in the middle of the file, then see if it works. Then move around that statement to see what breaks.

In case you are adding askbot to an existing site you'll have to adjust settings.py and urls.py manually. The templates are available in askbot/setup_templates directory.

edit flag offensive delete link more

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: 2011-11-17 06:49:58 -0600

Seen: 172 times

Last updated: Nov 17 '11