da2a11adf9
This reverts commit 0494a36681
.
16 lines
356 B
Python
Executable file
16 lines
356 B
Python
Executable file
import os
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dmoj.settings")
|
|
|
|
try:
|
|
import MySQLdb # noqa: F401, imported for side effect
|
|
except ImportError:
|
|
import pymysql
|
|
|
|
pymysql.install_as_MySQLdb()
|
|
|
|
from django.core.wsgi import (
|
|
get_wsgi_application,
|
|
) # noqa: E402, django must be imported here
|
|
|
|
application = get_wsgi_application()
|