This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
31 lines
875 B
Python
31 lines
875 B
Python
"""
|
|
Announcements Application Configuration
|
|
"""
|
|
|
|
|
|
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'},
|
|
}
|
|
}
|
|
}
|