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 397ac26 commit 51dc95eCopy full SHA for 51dc95e
djangosnippets/settings/base.py
@@ -178,7 +178,12 @@ def user_url(user):
178
}
179
180
181
-DATABASES = {"default": dj_database_url.config(default="postgres:///djangosnippets")}
+DATABASES = {
182
+ "default": dj_database_url.config(
183
+ conn_max_age=600,
184
+ conn_health_checks=True,
185
+ )
186
+}
187
DATABASES["default"]["ATOMIC_REQUESTS"] = True
188
189
requirements/base.txt
@@ -1,6 +1,6 @@
1
bleach==6.2.0
2
Django==5.2.3
3
-dj-database-url==0.5.0
+dj-database-url==3.0.0
4
django-allauth==0.63.6
5
django-contrib-comments==2.2.0
6
django-extensions==3.2.3
0 commit comments