forked from CGM_Public/pretix_original
Enable database health checks for when we use Django 4.1
4.1 is a while in the future but I really don't want to forget this then as it is so useful!
This commit is contained in:
@@ -130,6 +130,7 @@ DATABASES = {
|
||||
'HOST': config.get('database', 'host', fallback=''),
|
||||
'PORT': config.get('database', 'port', fallback=''),
|
||||
'CONN_MAX_AGE': 0 if db_backend == 'sqlite3' else 120,
|
||||
'CONN_HEALTH_CHECKS': db_backend != 'sqlite3', # Will only be used from Django 4.1 onwards
|
||||
'OPTIONS': db_options,
|
||||
'TEST': {
|
||||
'CHARSET': 'utf8mb4',
|
||||
|
||||
Reference in New Issue
Block a user