From 6d05d97759ca8979e969df8e70685ff31394e619 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 5 Sep 2024 14:35:14 -0400 Subject: [PATCH] fix: Use the correct django-admin script name. `django-admin.py` is not found in newer versions of python and the `django-admin` command should do the same thing so use that instead. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index eac7b4cb87..20592565ec 100644 --- a/Makefile +++ b/Makefile @@ -90,10 +90,10 @@ html_coverage: ## Generate and view HTML coverage report # This Make target should not be removed since it is relied on by a Jenkins job (`edx-internal/tools-edx-jenkins/translation-jobs.yml`), using `ecommerce-scripts/transifex`. extract_translations: ## Extract strings to be translated, outputting .po and .mo files # NOTE: We need PYTHONPATH defined to avoid ImportError(s) on CI. - cd course_discovery && PYTHONPATH="..:${PYTHONPATH}" django-admin.py makemessages -l en -v1 --ignore="assets/*" --ignore="static/bower_components/*" --ignore="static/build/*" -d django - cd course_discovery && PYTHONPATH="..:${PYTHONPATH}" django-admin.py makemessages -l en -v1 --ignore="assets/*" --ignore="static/bower_components/*" --ignore="static/build/*" -d djangojs + cd course_discovery && PYTHONPATH="..:${PYTHONPATH}" django-admin makemessages -l en -v1 --ignore="assets/*" --ignore="static/bower_components/*" --ignore="static/build/*" -d django + cd course_discovery && PYTHONPATH="..:${PYTHONPATH}" django-admin makemessages -l en -v1 --ignore="assets/*" --ignore="static/bower_components/*" --ignore="static/build/*" -d djangojs cd course_discovery && PYTHONPATH="..:${PYTHONPATH}" i18n_tool dummy - cd course_discovery && PYTHONPATH="..:${PYTHONPATH}" django-admin.py compilemessages + cd course_discovery && PYTHONPATH="..:${PYTHONPATH}" django-admin compilemessages # This Make target should not be removed since it is relied on by a Jenkins job (`edx-internal/tools-edx-jenkins/translation-jobs.yml`), using `ecommerce-scripts/transifex`. ifeq ($(OPENEDX_ATLAS_PULL),)