First time here? Check out the FAQ!
1

How to run startforum?
 

I'm new to askbot. In it's initial configuration instruction, it says, "initialize the site setup files by typing: startforum". Well, where do I type startforum? Where is this script? I tried "python manage.py startforum", also tried just typing in this command in the shell, but it doesn't work. Wish the documentation is more clear for beginners.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
codedigger's avatar
41
codedigger
asked 13 years ago

Comments

If some doc page is not clear on something - please point it out - will fix it.
Evgeny's avatar Evgeny (13 years ago)
also - since you have an existing site, you'll have to manually splice the settings.py files and urls.py. Startforum simply copies stuff from the directory "/askbot/setup_templates/"
Evgeny's avatar Evgeny (13 years ago)
The instruction at the page "Initial Configuration of Askbot" is the one I was referring to.
codedigger's avatar codedigger (13 years ago)
see more comments

1 Answer

0

Does simply "startforum" work?

If not, then the script is not on your path.

Normally it will be installed into the bin directory of your python environment.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 13 years ago
link

Comments

Thanks for the pointer. Yes, the script is in the python bin directory. Now, when I run it, this error comes up: .../python/bin/.python2.6.bin: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
codedigger's avatar codedigger (13 years ago)
This is most likely a problem with your python. For example library readline was absent on the system at the time python was compiled, so python does not support it. It will be the easiest if you first install the libraries, then recompile python. One thing to be careful with - not to clobber your default python interpreter. For example, Fedora-based linux systems want python2.4, then you can use command "make altinstall" to install the custom interpreter.
Evgeny's avatar Evgeny (13 years ago)
Sorry for asking beginner question. I installed readline now, but have been searching on how to recompile python. Sounds like I might mess up my current python settings by doing so. Is there a good link on how to recompile python? Alternatively, is there another way to set up a new Django project for AskBot without using startforum?
codedigger's avatar codedigger (13 years ago)
The python source has file INSTALL - it has all the instructions. However, one thing to keep in mind - on CentOS/RedHat/Fedora systems you'll have to use command "make altinstall" instead of "make install", b/c those want python2.4, while you are using 2.6.
Evgeny's avatar Evgeny (13 years ago)
startforum script copies contents of "askbot/setup_templates" to the root of the project (most are standard django files). While library readline is probably used to collect your input from the terminal (some management commands use it too).
Evgeny's avatar Evgeny (13 years ago)
see more comments