Merge PR #26717 bd03/app/pluggable

* Commits:
  refactor: Convert discussions to pluggable app
This commit is contained in:
stvn
2021-02-25 19:33:37 -08:00
3 changed files with 9 additions and 1 deletions

View File

@@ -2867,7 +2867,6 @@ INSTALLED_APPS = [
# Discussion forums
'openedx.core.djangoapps.django_comment_common',
'openedx.core.djangoapps.discussions',
# Notes
'lms.djangoapps.edxnotes',

View File

@@ -2,6 +2,8 @@
Configure the django app
"""
from django.apps import AppConfig
from edx_django_utils.plugins import PluginSettings
from edx_django_utils.plugins import PluginURLs
class DiscussionsConfig(AppConfig):
@@ -9,3 +11,9 @@ class DiscussionsConfig(AppConfig):
Configure the discussions django app
"""
name = 'openedx.core.djangoapps.discussions'
plugin_app = {
PluginURLs.CONFIG: {
},
PluginSettings.CONFIG: {
},
}

View File

@@ -83,6 +83,7 @@ setup(
"credentials = openedx.core.djangoapps.credentials.apps:CredentialsConfig",
"content_libraries = openedx.core.djangoapps.content_libraries.apps:ContentLibrariesConfig",
"discussion = lms.djangoapps.discussion.apps:DiscussionConfig",
"discussions = openedx.core.djangoapps.discussions.apps:DiscussionsConfig",
"grades = lms.djangoapps.grades.apps:GradesConfig",
"plugins = openedx.core.djangoapps.plugins.apps:PluginsConfig",
"theming = openedx.core.djangoapps.theming.apps:ThemingConfig",