update readme and add 127.0.0.1 to allowed hosts
This commit is contained in:
parent
db7110f07b
commit
76733b0547
2 changed files with 5 additions and 4 deletions
|
@ -9,9 +9,10 @@ Setup
|
||||||
Development
|
Development
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
1. pip install -r requirements/base.txt
|
1. pip install -r requirements/base.txt
|
||||||
2. python manage.py createsuperuser
|
2. python manage.py migrate
|
||||||
3. python manage.py loaddata fixtures/*
|
3. python manage.py createsuperuser
|
||||||
4. python manage.py migrate
|
4. python manage.py loaddata fixtures/*
|
||||||
|
5. python manage.py runserver
|
||||||
|
|
||||||
Prod
|
Prod
|
||||||
~~~~
|
~~~~
|
||||||
|
|
|
@ -22,7 +22,7 @@ import dj_database_url
|
||||||
db_from_env = dj_database_url.config()
|
db_from_env = dj_database_url.config()
|
||||||
DATABASES['default'].update(db_from_env)
|
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)
|
CANONICAL_HOST = os.environ.get("DJANGO_CANONICAL_HOST", None)
|
||||||
|
|
||||||
# If DEFAULT_FROM_EMAIL is not set, email will most likely break in prod.
|
# If DEFAULT_FROM_EMAIL is not set, email will most likely break in prod.
|
||||||
|
|
Loading…
Reference in a new issue