Fix Select2 tag autocomplete failing with multiple gunicorn workers.
All checks were successful
Docker / build (release) Successful in 9s
All checks were successful
Docker / build (release) Successful in 9s
This commit is contained in:
parent
1cdd1dce26
commit
a634cc88bd
1 changed files with 7 additions and 1 deletions
|
|
@ -166,9 +166,15 @@ CACHES = {
|
||||||
"default": {
|
"default": {
|
||||||
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
|
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
|
||||||
"LOCATION": "Master",
|
"LOCATION": "Master",
|
||||||
}
|
},
|
||||||
|
"select2": {
|
||||||
|
"BACKEND": "django.core.cache.backends.filebased.FileBasedCache",
|
||||||
|
"LOCATION": "/tmp/django_select2_cache",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SELECT2_CACHE_BACKEND = "select2"
|
||||||
|
|
||||||
|
|
||||||
# Password validation
|
# Password validation
|
||||||
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
|
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue