wsgi.py 614 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 8
# Disable PyContract contract checking when running as a webserver
import contracts
contracts.disable_all()

9 10
import openedx.core.operations
openedx.core.operations.install_memory_dumper()
11

12
import os
13 14 15 16 17 18 19 20 21
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cms.envs.aws")

import cms.startup as startup
startup.run()

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