31 lines
913 B
Python
31 lines
913 B
Python
"""
|
|
Announcements Application Configuration
|
|
"""
|
|
from __future__ import absolute_import
|
|
|
|
from django.apps import AppConfig
|
|
from openedx.core.djangoapps.plugins.constants import ProjectType, SettingsType, PluginURLs, PluginSettings
|
|
|
|
|
|
class AnnouncementsConfig(AppConfig):
|
|
"""
|
|
Application Configuration for Announcements
|
|
"""
|
|
name = u'openedx.features.announcements'
|
|
|
|
plugin_app = {
|
|
PluginURLs.CONFIG: {
|
|
ProjectType.LMS: {
|
|
PluginURLs.NAMESPACE: u'announcements',
|
|
PluginURLs.REGEX: u'^announcements/',
|
|
PluginURLs.RELATIVE_PATH: u'urls',
|
|
}
|
|
},
|
|
PluginSettings.CONFIG: {
|
|
ProjectType.LMS: {
|
|
SettingsType.COMMON: {PluginSettings.RELATIVE_PATH: u'settings.common'},
|
|
SettingsType.TEST: {PluginSettings.RELATIVE_PATH: u'settings.test'},
|
|
}
|
|
}
|
|
}
|