Enable the journal app in LMS. Add support to display Journals on index and courseware pages and dashboard.
31 lines
1012 B
Python
31 lines
1012 B
Python
"""
|
|
Journals Application Configuration
|
|
"""
|
|
from django.apps import AppConfig
|
|
from openedx.core.djangoapps.plugins.constants import ProjectType, SettingsType, PluginURLs, PluginSettings
|
|
|
|
|
|
class JournalsConfig(AppConfig):
|
|
"""
|
|
Application Configuration for Journals.
|
|
"""
|
|
name = u'openedx.features.journals'
|
|
|
|
plugin_app = {
|
|
PluginURLs.CONFIG: {
|
|
ProjectType.LMS: {
|
|
PluginURLs.NAMESPACE: u'',
|
|
PluginURLs.REGEX: r'^journals/',
|
|
PluginURLs.RELATIVE_PATH: u'urls',
|
|
}
|
|
},
|
|
PluginSettings.CONFIG: {
|
|
ProjectType.LMS: {
|
|
SettingsType.AWS: {PluginSettings.RELATIVE_PATH: u'settings.aws'},
|
|
SettingsType.COMMON: {PluginSettings.RELATIVE_PATH: u'settings.common'},
|
|
SettingsType.DEVSTACK: {PluginSettings.RELATIVE_PATH: u'settings.devstack'},
|
|
SettingsType.TEST: {PluginSettings.RELATIVE_PATH: u'settings.test'},
|
|
}
|
|
}
|
|
}
|