mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
13 lines
413 B
Python
13 lines
413 B
Python
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.
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dmoj.settings')
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
from dmoj.celery import app # noqa: E402, F401, imported for side effect
|