diff --git a/.github/workflows/compile-python-requirements.yml b/.github/workflows/compile-python-requirements.yml index 0ff99b9c68..fda1d3b338 100644 --- a/.github/workflows/compile-python-requirements.yml +++ b/.github/workflows/compile-python-requirements.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Python environment uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.8" - name: Run make compile-requirements env: diff --git a/.github/workflows/upgrade-one-python-dependency.yml b/.github/workflows/upgrade-one-python-dependency.yml index 6ca5dfcb35..baed246246 100644 --- a/.github/workflows/upgrade-one-python-dependency.yml +++ b/.github/workflows/upgrade-one-python-dependency.yml @@ -39,7 +39,7 @@ jobs: - name: Set up Python environment uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.8" - name: Update any pinned dependencies env: diff --git a/cms/envs/common.py b/cms/envs/common.py index 24a63fb7d9..e2ad3e239f 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -948,7 +948,7 @@ MIDDLEWARE = [ 'openedx.core.djangoapps.cache_toolbox.middleware.CacheBackedAuthenticationMiddleware', 'common.djangoapps.student.middleware.UserStandingMiddleware', - 'openedx.core.djangoapps.contentserver.middleware.StaticContentServer', + 'openedx.core.djangoapps.contentserver.middleware.StaticContentServerMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'common.djangoapps.track.middleware.TrackMiddleware', diff --git a/cms/urls.py b/cms/urls.py index 9828e9d0fb..e21d07083e 100644 --- a/cms/urls.py +++ b/cms/urls.py @@ -74,6 +74,9 @@ urlpatterns = oauth2_urlpatterns + [ path('heartbeat', include('openedx.core.djangoapps.heartbeat.urls')), path('i18n/', include('django.conf.urls.i18n')), + # Course assets + path('', include('openedx.core.djangoapps.contentserver.urls')), + # User API endpoints path('api/user/', include('openedx.core.djangoapps.user_api.urls')), diff --git a/lms/envs/common.py b/lms/envs/common.py index 7fbddadf38..3074d958b2 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -2287,7 +2287,7 @@ MIDDLEWARE = [ 'openedx.core.djangoapps.safe_sessions.middleware.EmailChangeMiddleware', 'common.djangoapps.student.middleware.UserStandingMiddleware', - 'openedx.core.djangoapps.contentserver.middleware.StaticContentServer', + 'openedx.core.djangoapps.contentserver.middleware.StaticContentServerMiddleware', # Adds user tags to tracking events # Must go before TrackMiddleware, to get the context set up diff --git a/lms/templates/problem.html b/lms/templates/problem.html index b785e4aa68..e239c32cd2 100644 --- a/lms/templates/problem.html +++ b/lms/templates/problem.html @@ -68,7 +68,8 @@ from openedx.core.djangolib.markup import HTML, Text (${submit_disabled_cta['description']}) % else: -
+ + (${submit_disabled_cta['description']}) + % endif % endif