Files
edx-platform/openedx/core/djangoapps/theming/apps.py
Manjinder Singh c76ed6ae45 Extracting plugin app from edx-platform (#24678)
* Moving plugins infrastructure to edx-django-utils
This PR extracts the code that enables plugins in edx-platform and puts it in edx-django-utils. This is done to allow other IDAS to add plugin functionality.
2020-08-12 07:48:53 -04:00

24 lines
612 B
Python

from django.apps import AppConfig
from edx_django_utils.plugins import PluginURLs
from openedx.core.djangoapps.plugins.constants import ProjectType
plugin_urls_config = {PluginURLs.NAMESPACE: u'theming', PluginURLs.REGEX: r'^theming/'}
class ThemingConfig(AppConfig):
name = 'openedx.core.djangoapps.theming'
plugin_app = {
PluginURLs.CONFIG: {
ProjectType.CMS: plugin_urls_config,
ProjectType.LMS: plugin_urls_config,
}
}
verbose_name = "Theming"
def ready(self):
# settings validations related to theming.
from . import checks