Add a wsgi file for the lms that loads the modulestores immediately after the application starts

This commit is contained in:
Calen Pennington
2012-08-28 12:01:05 -04:00
parent 1fe0ccbf25
commit 5c17366cd5

14
lms/wsgi.py Normal file
View File

@@ -0,0 +1,14 @@
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.envs.aws")
# 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()
from django.conf import settings
from xmodule.modulestore.django import modulestore
for store_name in settings.MODULESTORE:
modulestore(store_name)