wsgi_apache_lms.py 474 Bytes
Newer Older
1 2 3 4
# Patch the xml libs before anything else.
from safe_lxml import defuse_xml_libs
defuse_xml_libs()

5 6 7
import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.envs.aws")
8 9
os.environ.setdefault("SERVICE_VARIANT", "lms")

Jason Bau committed
10 11 12
import lms.startup as startup
startup.run()

13 14
# This application object is used by the development server
# as well as any WSGI server configured to use this file.
15 16
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()