File tree Expand file tree Collapse file tree 3 files changed +10
-20
lines changed
Expand file tree Collapse file tree 3 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 134134SERVER_EMAIL = DEFAULT_FROM_EMAIL
135135
136136
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+
137147# Logging
138148# A sample logging configuration. The only tangible logging
139149# performed by this configuration is to send an email to
Original file line number Diff line number Diff line change 5858DATABASES ["default" ]["CONN_MAX_AGE" ] = 600
5959
6060
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-
7861# Security
7962# https://docs.djangoproject.com/en/4.2/topics/security/
8063# --------------------------------------------------------------------------
Original file line number Diff line number Diff line change 33# Database server
44psycopg2-binary==2.9.9
55
6- # Caching
7- django-redis==5.4.0
8-
96# Email
107django-anymail==10.3
118
You can’t perform that action at this time.
0 commit comments