First time here? Check out the FAQ!
1

Not able to configure ASKBOT as seperate django application

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.

anonymous user
asked 2011-11-17 06:49:58 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2011-11-17 07:28:55 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments