Very Minor tweaks to the LMS and CMS startup.

I was going to do something in the startup code, then changed my mind,
but didn't want to just discard these changes.
This commit is contained in:
Ned Batchelder
2014-01-02 14:27:52 -05:00
parent 1c97909047
commit 39380f2d22
3 changed files with 11 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
"""
Module for code that should run during LMS startup
"""
import logging
from django.conf import settings
@@ -11,7 +10,6 @@ settings.INSTALLED_APPS # pylint: disable=W0104
from django_startup import autostartup
from xmodule.modulestore.django import modulestore
log = logging.getLogger(__name__)
def run():
"""
@@ -19,8 +17,8 @@ def run():
"""
autostartup()
# Trigger a forced initialization of our modulestores since this can take a while to complete
# and we want this done before HTTP requests are accepted.
# Trigger a forced initialization of our modulestores since this can take a
# while to complete and we want this done before HTTP requests are accepted.
if settings.INIT_MODULESTORE_ON_STARTUP:
for store_name in settings.MODULESTORE:
modulestore(store_name)