NDOJ/dmoj/wsgi.py
Phuoc Dinh Le e66b57ad5f Revert "Change comment style (#67)"
This reverts commit 411f3da45e.
2023-05-20 08:53:27 +09:00

16 lines
356 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()