From fefebf274770113289850f7aeceee6f7c24334fc Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 10 Mar 2020 21:22:36 +0100 Subject: [PATCH] add make migrations command --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3ae3236..c7d7ccd 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,16 @@ run: venv/production test: venv/development ( \ source venv/bin/activate; \ - export DJANGO_SETTINGS_MODULE=sensors.settings.development; \ + export DJANGO_SETTINGS_MODULE=sensors.settings.production; \ pytest --nomigrations --cov=. --cov-report=html sensors/; \ ) +migrations: + ( \ + export DJANGO_SETTINGS_MODULE=sensors.settings.development; \ + ./manage.py makemigrations collector; \ + ) + venv/development: test -d venv || python3 -m venv venv --system-site-packages ( \