wsgi.py 394 B

123456789101112131415
  1. import django
  2. from django.core.handlers.wsgi import WSGIHandler
  3. def get_wsgi_application():
  4. """
  5. The public interface to Django's WSGI support. Should return a WSGI
  6. callable.
  7. Allows us to avoid making django.core.handlers.WSGIHandler public API, in
  8. case the internal WSGI implementation changes or moves in the future.
  9. """
  10. django.setup()
  11. return WSGIHandler()