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