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:
3
lms/djangoapps/lms_initialization/__init__.py
Normal file
3
lms/djangoapps/lms_initialization/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""
|
||||
Initialization app for the LMS
|
||||
"""
|
||||
25
lms/djangoapps/lms_initialization/apps.py
Normal file
25
lms/djangoapps/lms_initialization/apps.py
Normal 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
|
||||
@@ -1988,6 +1988,9 @@ INSTALLED_APPS = [
|
||||
'django.contrib.staticfiles',
|
||||
'djcelery',
|
||||
|
||||
# Initialization
|
||||
'lms_initialization.apps.LMSInitializationConfig',
|
||||
|
||||
# Common views
|
||||
'openedx.core.djangoapps.common_views',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user