Ask Your Question
1

Not able to configure ASKBOT as seperate django application

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

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.

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

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

Evgeny gravatar image Evgeny flag of Chile
11329 50 84 183
http://askbot.org/

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.

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

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 site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2011-11-17 06:49:58 -0500

Seen: 91 times

Last updated: Nov 17 '11