From e85de962c4ec3c41a87679704f99fe19f2934389 Mon Sep 17 00:00:00 2001 From: kushvinth Date: Thu, 5 Mar 2026 20:06:09 +0530 Subject: [PATCH] fix: create build/appstore/ migration dirs in Makefile build target The MIGRATION_MODULES setting in settings/local.py points migrations to build/appstore/{apps,download,submit_app}. The Makefile build target was missing the creation of these directories and their __init__.py files, causing makemigrations and migrate to fail with: ModuleNotFoundError: No module named 'build.appstore' ValueError: Could not locate an appropriate location to create migrations package This adds mkdir and touch commands to create the required package structure before running any Django management commands. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index c5f3132cb..d7c79246a 100755 --- a/Makefile +++ b/Makefile @@ -69,6 +69,14 @@ coverage: build ## check code coverage build: ## Build app database and static content in build directory mkdir -p build/whoosh_index mkdir -p build/media + mkdir -p build/appstore/apps + mkdir -p build/appstore/download + mkdir -p build/appstore/submit_app + touch build/__init__.py + touch build/appstore/__init__.py + touch build/appstore/apps/__init__.py + touch build/appstore/download/__init__.py + touch build/appstore/submit_app/__init__.py # should fix errors upon calling python manage.py commands pip uninstall python-openid -y pip uninstall python3-openid -y