Merge PR #26717 bd03/app/pluggable
* Commits: refactor: Convert discussions to pluggable app
This commit is contained in:
@@ -2867,7 +2867,6 @@ INSTALLED_APPS = [
|
||||
|
||||
# Discussion forums
|
||||
'openedx.core.djangoapps.django_comment_common',
|
||||
'openedx.core.djangoapps.discussions',
|
||||
|
||||
# Notes
|
||||
'lms.djangoapps.edxnotes',
|
||||
|
||||
@@ -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: {
|
||||
},
|
||||
}
|
||||
|
||||
1
setup.py
1
setup.py
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user