First time here? Check out the FAQ!
1

The concept of "deployment"

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?
Tomasz P. Szynalski's avatar
179
Tomasz P. Szynalski
asked 2011-06-20 15:39:20 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

Evgeny's avatar
13.2k
Evgeny
updated 2011-06-20 15:59:14 -0600, answered 2011-06-20 15:56:38 -0600
edit flag offensive 0 remove flag delete link

Comments

Thanks. Now I have a better idea of what startforum does and why it's necessary.
Tomasz P. Szynalski's avatar Tomasz P. Szynalski (2011-06-20 16:05:44 -0600) edit
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's avatar mether (2011-06-25 19:18:14 -0600) edit
makes sense, thanks. It is best not to install into /usr/bin/path though, virtual environment would be better.
Evgeny's avatar Evgeny (2011-06-25 19:21:46 -0600) edit
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's avatar mether (2011-06-25 19:58:54 -0600) edit
yes, we'll fix this, the global script names must be distinct enough.
Evgeny's avatar Evgeny (2011-06-25 20:02:41 -0600) edit
add a comment see more comments