Some notes:
* The completion API was pulled out into a new repo, but left behind a
url() entry. That entry used a different namespace than the
pulled-out repo, so I had to fix the one place we used the namespace.
* Two urls couldn't be anchored because they broke tests:
url(r'users/(?P<user_id>\w+)/followed$', views.followed_threads, name='followed_threads'),
url(r'users/(?P<user_id>\w+)$', views.user_profile, name='user_profile'),
22 lines
575 B
Python
22 lines
575 B
Python
|
|
from django.apps import AppConfig
|
|
from openedx.core.djangoapps.plugins.constants import ProjectType, PluginURLs
|
|
|
|
|
|
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
|