Browse Source

Add environment variable for conn_max_age

pull/170/head
Clemens Wolff 5 years ago
parent
commit
7f302e1448
1 changed files with 1 additions and 1 deletions
  1. 2
      app/app/settings.py

2
app/app/settings.py

@ -198,7 +198,7 @@ LOGOUT_REDIRECT_URL = '/'
# Change 'default' database configuration with $DATABASE_URL.
DATABASES['default'].update(dj_database_url.config(
env='DATABASE_URL',
conn_max_age=500,
conn_max_age=env.int('DATABASE_CONN_MAX_AGE', 500),
ssl_require='sslmode' not in furl(env('DATABASE_URL', '')).args,
))

Loading…
Cancel
Save