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
@@ -24,6 +24,10 @@ DEVICE: | @@ -24,6 +24,10 @@ DEVICE: | ||
24 | support: "USB3" | 24 | support: "USB3" |
25 | language: "FLIPro" | 25 | language: "FLIPro" |
26 | 26 | ||
27 | + # (TODO) Each camera has an attached GPS | ||
28 | + #ATTACHED_DEVICES: | ||
29 | + # - file: device_FLI_KITS_sn2x1.yml | ||
30 | + | ||
27 | CAPABILITIES: | 31 | CAPABILITIES: |
28 | 32 | ||
29 | - CAPABILITY: | 33 | - CAPABILITY: |
src/core/pyros_django/pyros/settings.py
@@ -354,7 +354,13 @@ else: | @@ -354,7 +354,13 @@ else: | ||
354 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), | 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 | CONN_MAX_AGE = 0 | 362 | CONN_MAX_AGE = 0 |
363 | + | ||
358 | # New in Django 3.2 : we have to tell that we want auto field for id | 364 | # New in Django 3.2 : we have to tell that we want auto field for id |
359 | DEFAULT_AUTO_FIELD='django.db.models.AutoField' | 365 | DEFAULT_AUTO_FIELD='django.db.models.AutoField' |
360 | # SIMULATOR==True ==> 'TEST (simu)' RUN MODE, use pyros_test database | 366 | # SIMULATOR==True ==> 'TEST (simu)' RUN MODE, use pyros_test database |