Add lms_initialization app

This app is a grab bag of init code which can't find a good home in
other apps.  This was created in response to removing lms.startup.run().
This commit is contained in:
Troy Sankey
2017-10-31 12:51:59 -04:00
parent 6120c76d99
commit 1e599bed09
3 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
"""
Initialization app for the LMS
"""

View File

@@ -0,0 +1,25 @@
"""
Initialization app for the LMS
This app consists solely of a ready method in its AppConfig, and should be
included early in the INSTALLED_APPS list.
"""
import analytics
from django.apps import AppConfig
from django.conf import settings
class LMSInitializationConfig(AppConfig):
"""
Application Configuration for lms_initialization.
"""
name = 'lms_initialization'
verbose_name = 'LMS Initialization'
def ready(self):
"""
Global LMS initialization methods are called here. This runs after
settings have loaded, but before most other djangoapp initializations.
"""
pass

View File

@@ -1988,6 +1988,9 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'djcelery',
# Initialization
'lms_initialization.apps.LMSInitializationConfig',
# Common views
'openedx.core.djangoapps.common_views',