clean up the run command

This commit is contained in:
Andreas Zweili 2022-02-08 14:47:16 +01:00
parent f16f2613d4
commit 37315422d6
1 changed files with 4 additions and 1 deletions

View File

@ -4,9 +4,12 @@ SHELL=/usr/bin/env bash
.PHONY: run
run: setup
( \
source venv/bin/activate; \
export DJANGO_SETTINGS_MODULE=network_inventory.settings.local; \
$(find . -name __pycache__ -o -name "*.pyc" -delete) \
find . -name __pycache__ -o -name "*.pyc" -delete; \
python manage.py runserver; \
)
.PHONY: setup
setup: ./venv