2014-03-13 09:46:23 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2017-09-27 01:41:31 +08:00
|
|
|
try:
|
2019-09-29 04:32:12 +08:00
|
|
|
import MySQLdb # noqa: F401, imported for side effect
|
2017-09-27 01:41:31 +08:00
|
|
|
except ImportError:
|
2019-11-03 08:03:06 +08:00
|
|
|
import dmoj_install_pymysql # noqa: F401, imported for side effect
|
2017-09-27 01:41:31 +08:00
|
|
|
|
2021-09-08 11:21:40 +08:00
|
|
|
if __name__ == '__main__':
|
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dmoj.settings')
|
2014-03-13 09:46:23 +08:00
|
|
|
|
|
|
|
from django.core.management import execute_from_command_line
|
|
|
|
execute_from_command_line(sys.argv)
|