From bcdd73f611c28170703e5dfbc9f8c1c2b14868a2 Mon Sep 17 00:00:00 2001 From: Alexander Wong Date: Tue, 29 Aug 2017 15:25:06 -0600 Subject: [PATCH 1/2] setup development readme instructions --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..614fc5d --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# CareMyWay + +## Development (Quickstart) + +* Ensure you have virtualenv installed `pip install virtualenv` + * `virtualenv --version` + * `# 15.1.0` +* Ensure you have `python3` + * `which python3` + * `# /usr/local/bin/python3` +* Setup the virtual environment with python3 + * `virtualenv -p /usr/local/bin/python3 venv` +* Activate the environment, install dependencies, perform DB migration + * `source venv/bin/activate` + * `pip install -r requirements.txt` + * `python manage.py migrate` + * `python manage.py runserver` From 8a1f067e44f22e5620ea6b754f33dc41224f21e7 Mon Sep 17 00:00:00 2001 From: Alexander Wong Date: Tue, 29 Aug 2017 15:27:18 -0600 Subject: [PATCH 2/2] added localhost to allowed hosts --- caremyway/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caremyway/settings.py b/caremyway/settings.py index 4d56a7a..c93695a 100644 --- a/caremyway/settings.py +++ b/caremyway/settings.py @@ -25,7 +25,7 @@ SECRET_KEY = 'tzg6bzb@4f(p1l)s5o$g(d9$!*z2rqj^wn#fn-ej@v9cqe$47t' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ['dev.tannercollin.com'] +ALLOWED_HOSTS = ['dev.tannercollin.com', 'localhost'] # Application definition