wsgi.py 394 B

1234567891011121314
  1. import os
  2. import sys
  3. activate_this = "/var/lib/virtualenvs/pbp/bin/activate_this.py"
  4. execfile(activate_this, dict(__file__=activate_this))
  5. os.environ["DJANGO_SETTINGS_MODULE"] = "pbp_com.settings"
  6. BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  7. sys.path.insert(0, os.path.join(BASE_DIR, "apps"))
  8. import django.core.handlers.wsgi
  9. application = django.core.handlers.wsgi.WSGIHandler()