* 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.
24 lines
612 B
Python
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
|