Changeset - 07e7a01209e9
[Not reviewed]
0 1 0
Christopher Neugebauer - 7 years ago 2017-08-09 18:30:11
chrisjrn@gmail.com
Adds heroku database configuration and sets ALLOWED_HOSTS properly
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -17,3 +17,8 @@ DATABASES = {
 

	
 
ALLOWED_HOSTS = []
 
# HEROKU: Update database configuration with $DATABASE_URL.
 
import dj_database_url
 
db_from_env = dj_database_url.config()
 
DATABASES['default'].update(db_from_env)
 

	
 
ALLOWED_HOSTS = ["localhost", ".herokuapp.com"]
 

	
0 comments (0 inline, 0 general)