0 2 0
Josh Simmons - 2 years ago 2018-07-05 19:16:55
joshuasimmons@google.com
update readme and add 127.0.0.1 to allowed hosts
2 files changed with 5 insertions and 4 deletions:
↑ Collapse Diff ↑
...
 
@@ -9,9 +9,10 @@ Setup
9 9
 
Development
10 10
 
~~~~~~~~~~~
11 11
 
1. pip install -r requirements/base.txt
12
 
2. python manage.py createsuperuser
13
 
3. python manage.py loaddata fixtures/*
14
 
4. python manage.py migrate
12
 
2. python manage.py migrate
13
 
3. python manage.py createsuperuser
14
 
4. python manage.py loaddata fixtures/*
15
 
5. python manage.py runserver
15 16
 

	
16 17
 
Prod
17 18
 
~~~~
...
 
@@ -22,7 +22,7 @@ import dj_database_url
22 22
 
db_from_env = dj_database_url.config()
23 23
 
DATABASES['default'].update(db_from_env)
24 24
 

	
25
 
ALLOWED_HOSTS = [".localhost", ".herokuapp.com", ".northbaypython.org"]
25
 
ALLOWED_HOSTS = [".localhost", ".herokuapp.com", ".northbaypython.org", "127.0.0.1"]
26 26
 
CANONICAL_HOST = os.environ.get("DJANGO_CANONICAL_HOST", None)
27 27
 

	
28 28
 
# If DEFAULT_FROM_EMAIL is not set, email will most likely break in prod.
0 comments (0 inline, 0 general)