Search code examples
pythondjangowsgidjango-wsgi

Running WSGI application with a different version of Django to what's installed in python site-packages?


I have an application that uses Django 1.3 installed in python's site-packages. I want to create another copy of it (WSGI under Apache) but make it use a newer version of Django I've unpacked alongside to see if any input is required before I'm able to migrate to 1.4.

Is there a way to somehow specify where WSGI should import Django from?


Solution

  • Run the app inside a virtualenv.