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.
$virtualenv site --no-site-packages
Now copy the sources of askbot for customize and install
$git clone git://github.com/ASKBOT/askbot-devel.git
#python setup.py develop
Now move to the sub directory /home/development/site, and execute the command
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 runserverGo 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.