redis-cache is needed for Django5

https://forum.djangoproject.com/t/redis-cache-in-django-5-0/27131
This commit is contained in:
Benson Muite 2025-06-22 15:50:04 +03:00
parent 3d0d4216ca
commit 02b0bddf9c
2 changed files with 2 additions and 1 deletions

View file

@ -40,6 +40,7 @@ setup(
'search': ['dj-search-url'],
'testing': [
'django-cache-url>=1.0.0',
'django-redis',
'dj-database-url',
'dj-email-url',
'dj-search-url',

View file

@ -439,7 +439,7 @@ class ValueTests(TestCase):
def test_cache_url_value(self):
cache_setting = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache' if DJANGO_VERSION < (4,) else 'django.core.cache.backends.redis.RedisCache', # noqa: E501
'BACKEND': 'django_redis.cache.RedisCache' if DJANGO_VERSION < (4,) or DJANGO_VERSION > (5,) else 'django.core.cache.backends.redis.RedisCache', # noqa: E501
'LOCATION': 'redis://host:6379/1',
}
}