Skip to content

Commit c9adf86

Browse files
committed
make Postgres and S3 configurable through environment
1 parent 005d7f2 commit c9adf86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demoapp/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
WSGI_APPLICATION = 'wsgi.application'
7676

7777

78-
if os.getenv('USE_POSTGRES', False) in ['1', 'True', 'true']:
78+
if os.getenv('USE_POSTGRES', False) in ['1', 'TRUE', 'True', 'true']:
7979
DATABASES = {
8080
'default': {
8181
'ENGINE': 'django.db.backends.postgresql',
@@ -120,7 +120,7 @@
120120
},
121121
}
122122

123-
if False:
123+
if os.getenv('USE_S3', False) in ['1', 'TRUE', 'True', 'true']:
124124
STORAGES['finder_public'] = {
125125
'BACKEND': 'storages.backends.s3.S3Storage',
126126
'OPTIONS': {

0 commit comments

Comments
 (0)