File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 11DEBUG = True
22SECRET_KEY = somesercetkey
3- DATABASE_URL =
43ALLOWED_HOSTS = localhost,127.0.0.1
54
6- POSTGRES_HOST = db
5+ DATABASE_HOST = db
6+ DATABASE_NAME = lung_cancer_screening
7+ DATABASE_USER = lung_cancer_screening
8+ DATABASE_PASSWORD = password
9+
10+ # Required to provision development / test postgres container
711POSTGRES_DB = lung_cancer_screening
812POSTGRES_USER = lung_cancer_screening
913POSTGRES_PASSWORD = password
Original file line number Diff line number Diff line change @@ -95,12 +95,12 @@ def boolean_env(key, default=None):
9595DATABASES = {
9696 "default" : {
9797 "ENGINE" : "django.db.backends.postgresql" ,
98- "NAME" : environ .get ("POSTGRES_DB " , "" ),
99- "USER" : environ .get ("POSTGRES_USER " , "" ),
100- "PASSWORD" : environ .get ("POSTGRES_PASSWORD " , "" ),
101- "HOST" : environ .get ("POSTGRES_HOST " , "" ),
102- "PORT" : " 5432" ,
103- # "OPTIONS": {"sslmode": environ.get("DATABASE_SSLMODE", "prefer")},
98+ "NAME" : environ .get ("DATABASE_NAME " , "" ),
99+ "USER" : environ .get ("DATABASE_USER " , "" ),
100+ "PASSWORD" : environ .get ("DATABASE_PASSWORD " , "" ),
101+ "HOST" : environ .get ("DATABASE_HOST " , "" ),
102+ "PORT" : environ . get ( "DATABASE_PORT" , " 5432") ,
103+ "OPTIONS" : {"sslmode" : environ .get ("DATABASE_SSLMODE" , "prefer" )},
104104 }
105105}
106106
You can’t perform that action at this time.
0 commit comments