1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-05 01:26:54 +00:00

Index in real time, we don't do so many transactions

This commit is contained in:
Yohann D'ANELLO 2020-10-15 13:02:38 +02:00
parent 6c59bf11be
commit bbcfab1dcb

View File

@ -189,6 +189,8 @@ HAYSTACK_CONNECTIONS = {
}
}
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
_db_type = os.getenv('DJANGO_DB_TYPE', 'sqlite').lower()
if _db_type == 'mysql' or _db_type.startswith('postgres') or _db_type == 'psql':