Skip to content

Commit 005f846

Browse files
committed
fix
1 parent 337d5ee commit 005f846

1 file changed

Lines changed: 20 additions & 13 deletions

File tree

procollab/settings.py

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,23 +169,31 @@
169169

170170
CHANNEL_LAYERS = {"default": {"BACKEND": "channels.layers.InMemoryChannelLayer"}}
171171
else:
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
]
@@ -275,7 +283,6 @@
275283
if DEBUG:
276284
SIMPLE_JWT["ACCESS_TOKEN_LIFETIME"] = timedelta(weeks=1)
277285

278-
279286
SESSION_COOKIE_SECURE = False
280287

281288
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"

0 commit comments

Comments
 (0)