Files
edx-platform/openedx/core/djangoapps/contentserver/urls.py
Tim McCormack 36200f4232 fix: Fix matching of /c4x/ in course asset view urlpatterns (#35247)
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
2024-08-07 17:05:03 +00:00

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),
]