From 1f350a79908736b7a9eca603bade10de45c24e1c Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Wed, 24 Nov 2021 04:56:29 +0000 Subject: [PATCH] Update Readme and Allowed Hosts --- README.md | 5 ++++- api/api/settings.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9d47ed..3c41b42 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,9 @@ The AHosking.com API ## Getting Started ### +1. `sudo apt install libpq-dev python-dev python3-psycopg2` +1. `pip install virtualenv` +1. `python3 -m virtualenv .env` 1. Activate environment `.\.env\Scripts\activate` -1. \ No newline at end of file +1. diff --git a/api/api/settings.py b/api/api/settings.py index a3328d4..bf56579 100644 --- a/api/api/settings.py +++ b/api/api/settings.py @@ -29,7 +29,7 @@ SECRET_KEY = env("SECRET_KEY", default='django-insecure-7uajhmbt^@)mklk1ur=slkmn # SECURITY WARNING: don't run with debug turned on in production! DEBUG = env("DEBUG") -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ["192.168.1.187", "192.168.1.23"] # Application definition