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.

codedigger's avatar
41
codedigger
asked 2011-04-26 14:33:56 -0500
edit flag offensive 0 remove flag close merge delete

Comments

If some doc page is not clear on something - please point it out - will fix it.
Evgeny's avatar Evgeny (2011-04-26 14:39:13 -0500) edit
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 (2011-04-26 14:41:13 -0500) edit
The instruction at the page "Initial Configuration of Askbot" is the one I was referring to.
codedigger's avatar codedigger (2011-04-26 14:47:06 -0500) edit
add a comment 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.

Evgeny's avatar
13.2k
Evgeny
answered 2011-04-26 14:37:15 -0500
edit flag offensive 0 remove flag delete 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 (2011-04-26 14:46:20 -0500) edit
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 (2011-04-26 14:52:12 -0500) edit
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 (2011-04-29 14:40:17 -0500) edit
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 (2011-04-29 14:47:57 -0500) edit
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 (2011-04-29 14:51:02 -0500) edit
add a comment see more comments