File tree 3 files changed +10
-20
lines changed
3 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 134
134
SERVER_EMAIL = DEFAULT_FROM_EMAIL
135
135
136
136
137
+ # Caching
138
+ # https://docs.djangoproject.com/en/4.2/ref/settings/#caches
139
+ # --------------------------------------------------------------------------
140
+ CACHES = {
141
+ "default" : {
142
+ "BACKEND" : "django.core.cache.backends.locmem.LocMemCache" ,
143
+ }
144
+ }
145
+
146
+
137
147
# Logging
138
148
# A sample logging configuration. The only tangible logging
139
149
# performed by this configuration is to send an email to
Original file line number Diff line number Diff line change 58
58
DATABASES ["default" ]["CONN_MAX_AGE" ] = 600
59
59
60
60
61
- # Caching
62
- # https://docs.djangoproject.com/en/4.2/ref/settings/#caches
63
- # http://niwinz.github.io/django-redis/
64
- # --------------------------------------------------------------------------
65
- if "REDIS_URL" in os .environ :
66
- CACHES = {
67
- "default" : {
68
- "BACKEND" : "django_redis.cache.RedisCache" ,
69
- "LOCATION" : os .environ ["REDIS_URL" ],
70
- "OPTIONS" : {
71
- "CLIENT_CLASS" : "django_redis.client.DefaultClient" ,
72
- "IGNORE_EXCEPTIONS" : True ,
73
- },
74
- }
75
- }
76
-
77
-
78
61
# Security
79
62
# https://docs.djangoproject.com/en/4.2/topics/security/
80
63
# --------------------------------------------------------------------------
Original file line number Diff line number Diff line change 3
3
# Database server
4
4
psycopg2-binary==2.9.9
5
5
6
- # Caching
7
- django-redis==5.4.0
8
-
9
6
# Email
10
7
django-anymail==10.3
11
8
You can’t perform that action at this time.
0 commit comments