From 37315422d61a516a184ce3daa055a1a5f68d4f37 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 8 Feb 2022 14:47:16 +0100 Subject: [PATCH] clean up the run command --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e79c35c..1522e14 100644 --- a/Makefile +++ b/Makefile @@ -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