cp_uwsgi.py 387 B

123456789101112
  1. activate_this = "/var/lib/virtualenvs/pbp/bin/activate_this.py"
  2. execfile(activate_this, dict(__file__=activate_this))
  3. import os
  4. os.environ['DJANGO_SETTINGS_MODULE'] = 'cp_settings'
  5. import sys
  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()