mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
redis-cache is needed for Django5
https://forum.djangoproject.com/t/redis-cache-in-django-5-0/27131
This commit is contained in:
parent
3d0d4216ca
commit
02b0bddf9c
2 changed files with 2 additions and 1 deletions
1
setup.py
1
setup.py
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue