22 lines
286 B
Makefile
22 lines
286 B
Makefile
ifeq ($(VIRTUAL_ENV),)
|
|
RUN_IN_ENV=poetry run
|
|
else
|
|
RUN_IN_ENV=
|
|
endif
|
|
|
|
|
|
run:
|
|
@ $(RUN_IN_ENV) python manage.py runserver
|
|
|
|
|
|
shell:
|
|
@ $(RUN_IN_ENV) python manage.py shell
|
|
|
|
|
|
migrations:
|
|
@ $(RUN_IN_ENV) python manage.py makemigrations
|
|
|
|
|
|
migrate:
|
|
@ $(RUN_IN_ENV) python manage.py migrate
|