Add wsgi
This commit is contained in:
parent
1e9e8b8dc4
commit
f03590addb
2 changed files with 12 additions and 0 deletions
BIN
__pycache__/mocha.cpython-36.pyc
Normal file
BIN
__pycache__/mocha.cpython-36.pyc
Normal file
Binary file not shown.
12
wsgi.py
Normal file
12
wsgi.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import django
|
||||
from django.core.handlers.wsgi import WSGIHandler
|
||||
|
||||
|
||||
def get_wsgi_application():
|
||||
"""
|
||||
The public interface to Django's WSGI support. Return a WSGI callable.
|
||||
Avoids making django.core.handlers.WSGIHandler a public API, in case the
|
||||
internal WSGI implementation changes or moves in the future.
|
||||
"""
|
||||
django.setup(set_prefix=False)
|
||||
return WSGIHandler()
|
Reference in a new issue