File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 169169
170170 CHANNEL_LAYERS = {"default" : {"BACKEND" : "channels.layers.InMemoryChannelLayer" }}
171171else :
172- CHANNEL_LAYERS = {
173- "default" : {
174- "BACKEND" : "channels_redis.core.RedisChannelLayer" ,
175- "CONFIG" : {
176- "hosts" : [("127.0.0.1" , 6379 )],
177- },
178- },
179- }
180-
181- REDIS_HOST = config ("REDIS_HOST" , cast = str , default = "127.0.0.1" )
172+ # fixme
182173 CACHES = {
183174 "default" : {
184- "BACKEND" : "django.core.cache.backends.redis.RedisCache" ,
185- "LOCATION" : f"redis://{ REDIS_HOST } :6379" ,
175+ "BACKEND" : "django.core.cache.backends.locmem.LocMemCache" ,
186176 }
187177 }
188178
179+ CHANNEL_LAYERS = {"default" : {"BACKEND" : "channels.layers.InMemoryChannelLayer" }}
180+ # CHANNEL_LAYERS = {
181+ # "default": {
182+ # "BACKEND": "channels_redis.core.RedisChannelLayer",
183+ # "CONFIG": {
184+ # "hosts": [("127.0.0.1", 6379)],
185+ # },
186+ # },
187+ # }
188+ #
189+ # REDIS_HOST = config("REDIS_HOST", cast=str, default="127.0.0.1")
190+ # CACHES = {
191+ # "default": {
192+ # "BACKEND": "django.core.cache.backends.redis.RedisCache",
193+ # "LOCATION": f"redis://{REDIS_HOST}:6379",
194+ # }
195+ # }
196+
189197 REST_FRAMEWORK ["DEFAULT_RENDERER_CLASSES" ] = [
190198 "rest_framework.renderers.JSONRenderer" ,
191199 ]
275283if DEBUG :
276284 SIMPLE_JWT ["ACCESS_TOKEN_LIFETIME" ] = timedelta (weeks = 1 )
277285
278-
279286SESSION_COOKIE_SECURE = False
280287
281288EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
You can’t perform that action at this time.
0 commit comments