Setup Virtualenv for Any Project

NOTE: the commends in this tutorial is for Linux/Mac OS, Windows will be slightly different when setting up environment variables and system path

Setup virtualenv

1. Install pip

2. Install virtualenv

3. Create a folder to install virtualenv

4. Install virtualenvwrapper

5. Set WORKON_HOME to your virtualenv

6. Add virtualenvwrapper.sh to .bashrc (NOTE its .zshrc on Mac)


Setup virtual environment

1. make virtual environment

2. activate environment

3. get the project

4. get all the nesscary packages

5. adding apps for the defaul path in virtualenv

6. setup default startup folder for the environment

7. install dev tools:

8. remove environment

9. tell django which setting files to run in environment:

10. start django project

11. check the website in browser

12. Force refresh the browser

13. Some useful virtualenv commands