Using a virtualenv

If you install your project's Python dependencies inside a virtualenv(for more information visit http://www.virtualenv.org/), you'll need to add the path to this virtualenv's site-packages directory to your Python path as well. To do this, add an additional path to your WSGIPythonPath directive, with multiple paths separated by a colon (:) if using a UNIX-like system, or a semicolon (;) if using Windows. If any part of a directory path contains a space character, the complete argument string to WSGIPythonPath must be quoted:

WSGIPythonPath /path/to/mysite.com:/path/to/your/venv/lib/python3.X/site-packages 

Make sure you give the correct path to your virtualenv, and replace python3.X with the correct Python version (for example ...

Get Mastering Django: Core 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.