Skip to content

Commit 5fc268d

Browse files
committed
remove django4
1 parent 3944dba commit 5fc268d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

testproject/testproject/settings.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@
3939
]
4040

4141
ROOT_URLCONF = "testproject.urls"
42-
if django.VERSION > (4, 0):
43-
CACHES = {
44-
"default": {
45-
"BACKEND": "django.core.cache.backends.redis.RedisCache",
46-
"LOCATION": [
47-
"redis://127.0.0.1:6379", # leader
48-
],
49-
"OPTIONS": {"connection_class": FakeConnection},
50-
}
42+
43+
CACHES = {
44+
"default": {
45+
"BACKEND": "django.core.cache.backends.redis.RedisCache",
46+
"LOCATION": [
47+
"redis://127.0.0.1:6379", # leader
48+
],
49+
"OPTIONS": {"connection_class": FakeConnection},
5150
}
51+
}
5252
TEMPLATES = [
5353
{
5454
"BACKEND": "django.template.backends.django.DjangoTemplates",

0 commit comments

Comments
 (0)