diff options
-rw-r--r-- | pyfoss/wsgi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pyfoss/wsgi.py b/pyfoss/wsgi.py index 9f51c3c..fb96aa6 100644 --- a/pyfoss/wsgi.py +++ b/pyfoss/wsgi.py @@ -14,12 +14,13 @@ framework. """ import os +import sys +sys.path.append('/Site/pyfoss/') # 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"] = "pyfoss.settings" -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pyfoss.settings") +os.environ["DJANGO_SETTINGS_MODULE"] = "pyfoss.settings" # This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION |