diff --git a/project/project_name/wsgi.py b/project/project_name/wsgi.py --- a/project/project_name/wsgi.py +++ b/project/project_name/wsgi.py @@ -16,7 +16,7 @@ framework. import os # Set-up the virtual environment. -activate_this = path.abspath(path.join(path.dirname(__file__), "../../virtualenv/bin/activate_this.py")) +activate_this = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../virtualenv/bin/activate_this.py")) execfile(activate_this, dict(__file__=activate_this)) # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks