Ask Your Question
0

How to name Askbot project directory?

asked 2013-04-13 16:30:53 -0600

kris gravatar image

updated 2013-04-13 17:49:20 -0600

Evgeny gravatar image

When installing askbot, I did a clone from github which gave me a new folder (that contains a number of files like setup.py, and 1 folder called askbot.

During the askbot-setup process, I'm asked where to deploy askbot. If I enter "." to deploy in my root directory that contains the askbot folder, I get a warning that the askbot app already exists:

Please do not name your entire Django project 'askbot', because this name is already used by the askbot app itself Enter directory path (absolute or relative) to deploy askbot. To choose current directory - enter "."

If I enter the askbot folder as where to deploy askbot, I get this message:

Directory /Users/Kris/Sites/askbot/askbot already has a django project. If you want to overwrite settings.py and urls.py files, use parameter --force Enter directory path (absolute or relative) to deploy askbot. To choose current directory - enter "."

However, if i go back to my root directory and choose to deploy it in a new folder mysite, everything works. After the setup process is complete I can go into the /mysite folder and run "python manage.py runserver" and it appears that everything is running correctly.

Is that the correct folder hierarchy though? In my root directory, I'll have two folders:

askbot

mysite

"askbot" contains all the app/django applications, and "mysite" contains the settings?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-13 16:42:41 -0600

Evgeny gravatar image

Make it like /Users/Kris/Sites/something-else/askbot. The reason is that django requires the directory containing the settings.py is a python module, importable with an import statement. Inside that directory there already is module called askbot, so that name is already taken. Just rename your project root 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

1 follower

Stats

Asked: 2013-04-13 16:30:53 -0600

Seen: 986 times

Last updated: Apr 13 '13