diff options
author | Jayaram Pai | 2013-11-20 11:41:52 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-11-20 11:41:52 +0530 |
commit | 610327bd6604832f40361836c3eb89ba169650aa (patch) | |
tree | a7309334f12bfc03664e53723cbd2ca6ea2f3589 | |
parent | b0499f0ddf78f631121e2c237e12a35081e8e953 (diff) | |
download | pyfoss-610327bd6604832f40361836c3eb89ba169650aa.tar.gz pyfoss-610327bd6604832f40361836c3eb89ba169650aa.tar.bz2 pyfoss-610327bd6604832f40361836c3eb89ba169650aa.zip |
setting os.enviorn in wsgi.py
-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 |