Ask Your Question
1

The concept of "deployment"

asked Jun 20 '11

Tomasz P. Szynalski gravatar image Tomasz P. Szynalski flag of Poland
179 1 9
http://ask.antimoon.com/

After installing Askbot with (1) pip, (2) easy_install, or (3) untarring and running setup.py, you're supposed to run startforum (which resides in the same bin directory where the python executable is).

startforum is called a deployment script.

  1. What exactly does it do?
  2. Why is it needed? Why can't we just unzip Askbot in a directory and run it?

1 Answer

Sort by ยป oldest newest most voted
1
Tomasz P. Szynalski has selected this answer as correct

answered Jun 20 '11

Evgeny gravatar image Evgeny flag of Chile
6665 31 49 95
http://askbot.org/

updated Jun 20 '11

Django can host multiple applications on the same site, where apps work like lego blocks - parts of the whole, for example - an online store and an askbot forum, etc.

All django sites have four project-wide files:

  • settings.py - the main settings configuration file
  • urls.py - main url configuration
  • __init__.py - often empty but needed for Python
  • manage.py - the hook allowing to run management commands

So what startforum script does - adds those files to a directory you select (and some more things specific to askbot.

If the directory is empty - the files will be just copied from askbot/setup_templates/, it won't overwrite any existing project files.

In the case you already have a django site you will not want to use startforum, because you don't want to just overwrite your existing settings.py.

link

Comments

Thanks. Now I have a better idea of what startforum does and why it's necessary. Tomasz P. Szynalski (Jun 20 '11)
I think "startforum" is too generic a name. It is better to rename it into askbot_startforum or something more specific to avoid name clashes in /usr/bin path IMO mether (Jun 25 '11)
makes sense, thanks. It is best not to install into /usr/bin/path though, virtual environment would be better. Evgeny (Jun 25 '11)
virtual env is better for the user, yes but from a distribution maintainer perspective, I have to install it into /usr/bin unless I am mistaken about packaging mether (Jun 25 '11)
yes, we'll fix this, the global script names must be distinct enough. Evgeny (Jun 25 '11)

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]

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: Jun 20 '11

Seen: 53 times

Last updated: Jun 20 '11