NDOJ/dmoj/wsgi_async.py

19 lines
564 B
Python
Raw Normal View History

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