Cloned DMOJ
This commit is contained in:
parent
f623974b58
commit
49dc9ff10c
513 changed files with 132349 additions and 39 deletions
15
dmoj_celery.py
Normal file
15
dmoj_celery.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue