Skip to content

Commit

Permalink
- Added: addtional db configuration adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
AMCorvi committed Jul 29, 2017
1 parent 0b4ffb9 commit ff15b73
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions amcorvi_site/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
# PostgresSQL Docker configuration
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"NAME": os.environ.get("DBNAME", True),
"USER": os.environ.get("DBUSER", True),
"PASSWORD": os.environ.get("DBPASS", True),
"HOST": "",
"NAME": os.getenv("DBNAME"),
"USER": os.getenv("DBUSER"),
"PASSWORD": os.getenv("DBPASS"),
"HOST": os.getenv("DBHOST"),
"PORT": "5432",
}

Expand All @@ -116,6 +116,8 @@
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
#}
}
import dj_database_url
DATABASES['default'] = dj_database_url.config()


# Password validation
Expand Down

0 comments on commit ff15b73

Please sign in to comment.