wsgi.py 463 B

1234567891011121314151617181920212223
  1. # encoding=utf8
  2. """
  3. WSGI config for cloud_defense project.
  4. It exposes the WSGI callable as a module-level variable named ``application``.
  5. For more information on this file, see
  6. https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
  7. """
  8. import sys
  9. reload(sys)
  10. sys.setdefaultencoding("utf-8")
  11. import os
  12. from django.core.wsgi import get_wsgi_application
  13. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
  14. application = get_wsgi_application()