mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
13 lines
345 B
Python
13 lines
345 B
Python
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()
|