Commit 5307525df8522a1f05d7d5ba1e4850b89a3f3b55
1 parent
b156c5dd
Exists in
dev
commentaire sur settings
Showing
2 changed files
with
10 additions
and
0 deletions
Show diff stats
config/devices/device_FLI_Kepler4040_noshutter_generic.yml
src/core/pyros_django/pyros/settings.py
... | ... | @@ -354,7 +354,13 @@ else: |
354 | 354 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), |
355 | 355 | } |
356 | 356 | } |
357 | +# By default, Django creates a new connexion for each request | |
358 | +# For optimization, it is better to have "persistent" connexions by setting this timeout to a value greater than zero | |
359 | +# 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 | +#CONN_MAX_AGE = 0 | |
357 | 362 | CONN_MAX_AGE = 0 |
363 | + | |
358 | 364 | # New in Django 3.2 : we have to tell that we want auto field for id |
359 | 365 | DEFAULT_AUTO_FIELD='django.db.models.AutoField' |
360 | 366 | # SIMULATOR==True ==> 'TEST (simu)' RUN MODE, use pyros_test database | ... | ... |