2013-12-30 22:42:15 +08:00
|
|
|
import django
|
2011-10-22 12:30:10 +08:00
|
|
|
from django.core.handlers.wsgi import WSGIHandler
|
|
|
|
|
|
|
|
|
|
|
|
def get_wsgi_application():
|
|
|
|
"""
|
2017-01-26 03:02:33 +08:00
|
|
|
The public interface to Django's WSGI support. Return a WSGI callable.
|
2011-10-22 12:30:10 +08:00
|
|
|
|
2017-01-26 03:02:33 +08:00
|
|
|
Avoids making django.core.handlers.WSGIHandler a public API, in case the
|
|
|
|
internal WSGI implementation changes or moves in the future.
|
2011-10-22 12:30:10 +08:00
|
|
|
"""
|
2015-10-24 03:02:34 +08:00
|
|
|
django.setup(set_prefix=False)
|
2011-10-22 12:30:10 +08:00
|
|
|
return WSGIHandler()
|