wsgi_apache_lms.py 483 Bytes
Newer Older
1 2 3
import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.envs.aws")
4 5
os.environ.setdefault("SERVICE_VARIANT", "lms")

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

from django.conf import settings
from xmodule.modulestore.django import modulestore

for store_name in settings.MODULESTORE:
    modulestore(store_name)