We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aaa78c commit 833f5deCopy full SHA for 833f5de
sensorsafrica/settings.py
@@ -97,11 +97,10 @@
97
# Database
98
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
99
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
-# )
+DATABASE_URL = os.getenv(
+ "SENSORSAFRICA_DATABASE_URL",
+ "postgres://sensorsafrica:sensorsafrica@localhost:5432/sensorsafrica",
+)
105
DATABASES = {"default": dj_database_url.parse(DATABASE_URL)}
106
107
0 commit comments