From 91fc242f2c2c5249c04cbe1b37da067e942fda87 Mon Sep 17 00:00:00 2001 From: Kyle D McCormick Date: Fri, 23 Oct 2026 10:37:37 -0400 Subject: [PATCH] fix: pin Django in the check_keywords tox env `make upgrade` strips Django from requirements/test.txt so that tox can choose the Django version, but the check_keywords env only installed test.txt and has no django52 factor. pip then pulled in the latest Django (now 6.x), which breaks DRF's import of django.utils.cache.cc_delim_re. Install the pinned version from requirements/django.txt. Part of: https://github.com/openedx/public-engineering/issues/574 Co-authored-by: Claude Opus 5.5 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 666c1b4e..92125d56 100644 --- a/tox.ini +++ b/tox.ini @@ -47,6 +47,7 @@ setenv = allowlist_externals = make deps = + -r{toxinidir}/requirements/django.txt -r{toxinidir}/requirements/test.txt commands = make check_keywords