Declare CMS apps using fully qualified names

This commit is contained in:
Kyle McCormick
2020-09-30 17:16:11 -04:00
committed by Kyle McCormick
parent bc8987f685
commit 793df96332
5 changed files with 10 additions and 9 deletions

View File

@@ -1 +1,2 @@
default_app_config = 'api.apps.ApiConfig'
# pylint: disable=missing-module-docstring
default_app_config = 'cms.djangoapps.api.apps.ApiConfig'

View File

@@ -11,7 +11,7 @@ class CmsUserTasksConfig(AppConfig):
"""
Application Configuration for cms_user_tasks.
"""
name = u'cms_user_tasks'
name = u'cms.djangoapps.cms_user_tasks'
def ready(self):
"""

View File

@@ -12,7 +12,7 @@ class ContentstoreConfig(AppConfig):
"""
Application Configuration for Contentstore.
"""
name = u'contentstore'
name = u'cms.djangoapps.contentstore'
def ready(self):
"""

View File

@@ -13,7 +13,7 @@ class XBlockConfig(AppConfig):
"""
Default configuration for the "xblock_config" Django application.
"""
name = u'xblock_config'
name = u'cms.djangoapps.xblock_config'
verbose_name = u'XBlock Configuration'
def ready(self):

View File

@@ -1354,19 +1354,19 @@ INSTALLED_APPS = [
'openedx.core.djangoapps.video_pipeline',
# For CMS
'contentstore.apps.ContentstoreConfig',
'cms.djangoapps.contentstore.apps.ContentstoreConfig',
'openedx.core.djangoapps.contentserver',
'course_creators',
'cms.djangoapps.course_creators',
'student.apps.StudentConfig', # misleading name due to sharing with lms
'openedx.core.djangoapps.course_groups', # not used in cms (yet), but tests run
'xblock_config.apps.XBlockConfig',
'cms.djangoapps.xblock_config.apps.XBlockConfig',
# New (Blockstore-based) XBlock runtime
'openedx.core.djangoapps.xblock.apps.StudioXBlockAppConfig',
# Maintenance tools
'maintenance',
'cms.djangoapps.maintenance',
'openedx.core.djangoapps.util.apps.UtilConfig',
# Tracking
@@ -1478,7 +1478,7 @@ INSTALLED_APPS = [
'user_tasks',
# CMS specific user task handling
'cms_user_tasks.apps.CmsUserTasksConfig',
'cms.djangoapps.cms_user_tasks.apps.CmsUserTasksConfig',
# Unusual migrations
'database_fixups',