changeset 745:bace7db5678c

Django 1.6: take advantage of new database connection persistence.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 Dec 2013 14:52:23 -0600
parents 8789299c75b1
children 3ba1f30d1d6a
files sg101/settings/production.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sg101/settings/production.py	Sun Dec 29 14:45:26 2013 -0600
+++ b/sg101/settings/production.py	Sun Dec 29 14:52:23 2013 -0600
@@ -17,6 +17,9 @@
     },
 }
 
+# Lifetime of the database connections, in seconds:
+CONN_MAX_AGE = 1200
+
 STATIC_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, '..', 'static_serve'))
 
 # Used cached template loader