From 76733b05472ac5a6cfe6f8b56f9ad2630e8f59bd 2018-07-05 19:16:55 From: Josh Simmons Date: 2018-07-05 19:16:55 Subject: [PATCH] update readme and add 127.0.0.1 to allowed hosts --- diff --git a/README.rst b/README.rst index 1e72b64645fff554713c9ae6a4b66aad73cd4b07..aad59b810f281533cad263e1c71b982590b4fe95 100644 --- a/README.rst +++ b/README.rst @@ -9,9 +9,10 @@ Setup Development ~~~~~~~~~~~ 1. pip install -r requirements/base.txt -2. python manage.py createsuperuser -3. python manage.py loaddata fixtures/* -4. python manage.py migrate +2. python manage.py migrate +3. python manage.py createsuperuser +4. python manage.py loaddata fixtures/* +5. python manage.py runserver Prod ~~~~ diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index 5935ae1fc6162ec91ad70605ffd58539f0923c0a..58fcab6619027a6426219c6dfe56b4a80cee6ce0 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -22,7 +22,7 @@ import dj_database_url db_from_env = dj_database_url.config() DATABASES['default'].update(db_from_env) -ALLOWED_HOSTS = [".localhost", ".herokuapp.com", ".northbaypython.org"] +ALLOWED_HOSTS = [".localhost", ".herokuapp.com", ".northbaypython.org", "127.0.0.1"] CANONICAL_HOST = os.environ.get("DJANGO_CANONICAL_HOST", None) # If DEFAULT_FROM_EMAIL is not set, email will most likely break in prod.