From a30fbd1c63c2f913b13d3208af660490536a3362 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sat, 13 Jul 2019 15:38:21 +0200 Subject: [PATCH] extend the "make local" command --- Makefile | 2 ++ README.md | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bd788fe..f8fee4a 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,8 @@ local: ( \ source venv/bin/activate; \ pip3 install -r requirements/local.txt; \ + export DJANGO_SETTINGS_MODULE=network_inventory.settings.local; \ + ./run.sh; \ ) local_test: diff --git a/README.md b/README.md index ddb2cb8..87e059b 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,7 @@ inventory over my various servers and other network equipment. in the future and SQlite is not supported for production. ### Local Setup -3. Run `make local` to create a virtual environment. -4. Run `run.sh` to start the development server. You can access it at +3. Run `make local` to start the development server. You can access it at http://localhost:8000 . You're now all set to start developing. ### Docker Setup