Skip to content

Commit 833f5de

Browse files
committed
SENSORSAFRICA_DATABASE_URL
1 parent 8aaa78c commit 833f5de

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sensorsafrica/settings.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,10 @@
9797
# Database
9898
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
9999

100-
DATABASE_URL = "postgres://htools:EFiNop6PMKBbeE6@cfa-general.cfgmtx8ishfx.eu-west-1.rds.amazonaws.com:54321/htools-airquality-api"
101-
# os.getenv(
102-
# "SENSORSAFRICA_DATABASE_URL",
103-
# "postgres://sensorsafrica:sensorsafrica@localhost:5432/sensorsafrica",
104-
# )
100+
DATABASE_URL = os.getenv(
101+
"SENSORSAFRICA_DATABASE_URL",
102+
"postgres://sensorsafrica:sensorsafrica@localhost:5432/sensorsafrica",
103+
)
105104
DATABASES = {"default": dj_database_url.parse(DATABASE_URL)}
106105

107106

0 commit comments

Comments
 (0)