This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
28 lines
754 B
Python
28 lines
754 B
Python
"""
|
|
Apache WSGI file for LMS
|
|
|
|
This module contains the WSGI application used for Apache deployment.
|
|
It exposes a module-level variable named ``application``.
|
|
"""
|
|
|
|
|
|
from openedx.core.lib.logsettings import log_python_warnings
|
|
log_python_warnings()
|
|
|
|
# Patch the xml libs before anything else.
|
|
from safe_lxml import defuse_xml_libs
|
|
defuse_xml_libs()
|
|
|
|
import os
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.envs.aws")
|
|
os.environ.setdefault("SERVICE_VARIANT", "lms")
|
|
|
|
import lms.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() # pylint: disable=invalid-name
|