您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

sandbox.wsgi 579B

123456789101112131415161718192021
  1. import os
  2. import sys
  3. import site
  4. sys.stdout = sys.stderr
  5. # Project root
  6. root = '/var/www/oscar/django-oscar/sandbox/'
  7. sys.path.insert(0, root)
  8. # Packages from virtualenv
  9. activate_this = '/var/www/oscar/env/bin/activate_this.py'
  10. execfile(activate_this, dict(__file__=activate_this))
  11. # Set environmental variable for Django and fire WSGI handler
  12. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
  13. import django.core.handlers.wsgi
  14. _application = django.core.handlers.wsgi.WSGIHandler()
  15. def application(environ, start_response):
  16. return _application(environ, start_response)