25 lines
517 B
Python
25 lines
517 B
Python
"""
|
|
Defines URLs for theming views.
|
|
"""
|
|
from django.urls import path
|
|
|
|
from . import helpers
|
|
from . import views
|
|
|
|
app_name = "openedx.core.djangoapps.theming"
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"asset/<path:path>",
|
|
views.themed_asset,
|
|
name="openedx.theming.asset",
|
|
),
|
|
]
|
|
|
|
if helpers.is_comprehensive_theming_enabled():
|
|
urlpatterns += [
|
|
path('admin', views.ThemingAdministrationFragmentView.as_view(),
|
|
name="openedx.theming.update_theme_fragment_view",
|
|
),
|
|
]
|