hi all I’m trying using select2 but when i run makemigrations or migrate command error appears:
ERRORS:
?: (caches.E001) You must define a 'default' cache in your CACHES setting.
the actual caches is
CACHES = {
# … default cache config and others
"select2": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/2",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
}
# Tell select2 which cache configuration to use:
SELECT2_CACHE_BACKEND = "select2"