Still I remember, once I was crying(!) to people to teach me virtualenv 😛 It’s actually I didn’t know that what it does, how it does and what are the benefits of using virtualenv.
Anyway, there are few and very important benefits of using virtualenv. This fantastic tool gives theh power of creating isolated Python environment. Keeps the headache of permission, version of the applications, dependencies etc.
The funnies thing about virtualenv is that, it is enormously easy to setup. YES, I mean it 🙂
sudo easy_install virtualenv
Now go to the directory where you want to create the project and type
virtualenv --no-site-packages vdjango
now install django
Start a django project
./vdjango/bin/django-admin.py startproject myapp
now to the project directory and run the project.
../vdjango/bin/python manage.py runserver 0.0.0.0:8000