16 lines
394 B
Python
16 lines
394 B
Python
import django
|
|
from django.core.handlers.wsgi import WSGIHandler
|
|
|
|
|
|
def get_wsgi_application():
|
|
"""
|
|
The public interface to Django's WSGI support. Should return a WSGI
|
|
callable.
|
|
|
|
Allows us to avoid making django.core.handlers.WSGIHandler public API, in
|
|
case the internal WSGI implementation changes or moves in the future.
|
|
|
|
"""
|
|
django.setup()
|
|
return WSGIHandler()
|