Commit 844fa94c4ebe5dfb49b068623e2ca42b72652165
1 parent
5307525d
Exists in
dev
update settings
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/core/pyros_django/pyros/settings.py
@@ -352,6 +352,7 @@ else: | @@ -352,6 +352,7 @@ else: | ||
352 | 'default': { | 352 | 'default': { |
353 | 'ENGINE': 'django.db.backends.sqlite3', | 353 | 'ENGINE': 'django.db.backends.sqlite3', |
354 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), | 354 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), |
355 | + 'CONN_MAX_AGE': 500, | ||
355 | } | 356 | } |
356 | } | 357 | } |
357 | # By default, Django creates a new connexion for each request | 358 | # By default, Django creates a new connexion for each request |
@@ -359,7 +360,7 @@ else: | @@ -359,7 +360,7 @@ else: | ||
359 | # BUT : | 360 | # BUT : |
360 | # We had initially set this to zero to be sure that a child process had not the same connexion as its parent | 361 | # We had initially set this to zero to be sure that a child process had not the same connexion as its parent |
361 | #CONN_MAX_AGE = 0 | 362 | #CONN_MAX_AGE = 0 |
362 | -CONN_MAX_AGE = 0 | 363 | +#CONN_MAX_AGE = 0 |
363 | 364 | ||
364 | # New in Django 3.2 : we have to tell that we want auto field for id | 365 | # New in Django 3.2 : we have to tell that we want auto field for id |
365 | DEFAULT_AUTO_FIELD='django.db.models.AutoField' | 366 | DEFAULT_AUTO_FIELD='django.db.models.AutoField' |