G.4 Virtual Environments

One of the advantages to the setup described is the ability to quickly add and remove packages. One of the most useful is virtualenvwrapper. It allows for the creation of specific development environments. For instance, if you’re working on two projects, and one requires Django 1.7 but the other uses Django 1.8, you can easily run both on your system thanks to the virtual environment wrapper, as shown in Example G.1.

Example G.1: Shell Code

$ pip install virtualenvwrapper

Django Documentation

For more about virtualenvwrapper:

https://virtualenvwrapper.readthedocs.org/en/latest/

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.