2020-01-21 06:35:58 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
import gevent.monkey # noqa: I100, gevent must be imported here
|
|
|
|
|
2022-05-14 17:57:27 +00:00
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dmoj.settings")
|
2020-01-21 06:35:58 +00:00
|
|
|
gevent.monkey.patch_all()
|
|
|
|
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
import dmoj_install_pymysql # noqa: F401, I100, I202, imported for side effect
|
|
|
|
|
2022-05-14 17:57:27 +00:00
|
|
|
from django.core.wsgi import (
|
|
|
|
get_wsgi_application,
|
|
|
|
) # noqa: E402, I100, I202, django must be imported here
|
|
|
|
|
2020-01-21 06:35:58 +00:00
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
import django_2_2_pymysql_patch # noqa: I100, F401, I202, imported for side effect
|
2022-05-14 17:57:27 +00:00
|
|
|
|
2020-01-21 06:35:58 +00:00
|
|
|
application = get_wsgi_application()
|