Configuring ASKBOT using virtualenv


I have been trying to install Askbot using virtualenv.Askbot is an open source an Q&A forum which is written in Python and Django and virtualenv is a tool to create isolated Python environments.

You can get a brief introduction about virtualenv here.After installing virtualenv, activate the the virtualenv using the following steps:

First of all, create a project dir with virtualenv.


$cd /home/development
$virtualenv site --no-site-packages
$. site/bin/activate

Now copy the sources of askbot for customize and install

$cd /home/developments/site/
$git clone git://github.com/ASKBOT/askbot-devel.git
$cd askbot-devel
#python setup.py develop

Now move to the sub directory /home/development/site, and execute the command

$cd /home/development/site
$startforumaskbot-setup

When prompted for the name of the directory type forum.Now, edit the settings.py file accordingly.

Execute the commands ‘python manage.py syncdb’ ‘python manage.py migrate’.
Now run the development server:
$python manage.py runserver
Go to the browser and enter the URL as http://127.0.0.1:8000/.

While executing the command, python manage.py develop, in virtualenv, I often faced the problem of module missing. In that case I usually used the command
$pip install -E site
This would install the modules in the /lib/python2.7/site-packages/ directory inside the virtualenv.

But I eventually got stuck in a problem with the module functional,Though I installed the package celery and django-celery, it did not help. At last Evgeny helped me sort out the problem. A detail conversation and the solution is shown here.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: