2020-01-21 06:35:58 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
try:
|
|
|
|
import MySQLdb # noqa: F401, imported for side effect
|
|
|
|
except ImportError:
|
|
|
|
import dmoj_install_pymysql # noqa: F401, imported for side effect
|
|
|
|
|
|
|
|
# set the default Django settings module for the 'celery' program.
|
2022-05-14 17:57:27 +00:00
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dmoj.settings")
|
2020-01-21 06:35:58 +00:00
|
|
|
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
import django_2_2_pymysql_patch # noqa: I100, F401, I202, imported for side effect
|
|
|
|
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
from dmoj.celery import app # noqa: F401, imported for side effect
|