add make migrations command
This commit is contained in:
parent
26aa800224
commit
fefebf2747
8
Makefile
8
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
|
||||
( \
|
||||
|
|
Loading…
Reference in New Issue