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.
2 parents 7c5f996 + b6a73f0 commit 20cf675Copy full SHA for 20cf675
quickstart/settings.py
@@ -145,7 +145,19 @@
145
# environment variable is available, e.g. during Docker build
146
DATABASE_URL = os.environ.get('DATABASE_URL', 'sqlite://:memory:')
147
148
-DATABASES = {'default': dj_database_url.parse(DATABASE_URL)}
+if not os.environ.get('CI', False):
149
+ DATABASES = {'default': dj_database_url.parse(DATABASE_URL)}
150
+else:
151
+ DATABASES = {
152
+ 'default': {
153
+ 'ENGINE': 'django.db.backends.postgresql',
154
+ 'NAME': 'postgres',
155
+ 'USER': 'postgres',
156
+ 'PASSWORD': 'postgres',
157
+ 'HOST': '127.0.0.1',
158
+ 'PORT': '5432',
159
+ }
160
161
162
163
# Password validation
0 commit comments