This was failing to capture /c4x/ URLs when the `content_server.use_view` waffle flag was enabled, so we were returning 404s for those during our rollout test. Part of https://github.com/openedx/edx-platform/issues/34702
17 lines
490 B
Python
17 lines
490 B
Python
"""
|
|
URL patterns for course asset serving.
|
|
"""
|
|
|
|
from django.urls import re_path
|
|
|
|
from . import views
|
|
|
|
# These patterns are incomplete and do not capture the variable
|
|
# components of the URLs. That's because the view itself is separately
|
|
# parsing the paths, for historical reasons. See docstring on views.py.
|
|
urlpatterns = [
|
|
re_path("^c4x/", views.course_assets_view),
|
|
re_path("^asset-v1:", views.course_assets_view),
|
|
re_path("^assets/courseware/", views.course_assets_view),
|
|
]
|