diff options
-rw-r--r-- | forums/wsgi.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/forums/wsgi.py b/forums/wsgi.py index 0978e41..728eed4 100644 --- a/forums/wsgi.py +++ b/forums/wsgi.py @@ -14,12 +14,18 @@ framework. """ import os +import sys + +sys.path.append('/Sites/venv/forums/') # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks # if running multiple sites in the same mod_wsgi process. To fix this, use # mod_wsgi daemon mode with each site in its own daemon process, or use # os.environ["DJANGO_SETTINGS_MODULE"] = "forums.settings" -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "forums.settings") +os.environ["DJANGO_SETTINGS_MODULE"] = "forums.settings" + +activate_this = '/Sites/venv/bin/activate_this.py' +execfile(activate_this, dict(__file__=activate_this)) # This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION |