Adds channels_redis package and configuration

sync
Laurent 11 months ago
parent d73deb9d64
commit 7d488a2019
  1. 6
      padelclub_backend/settings_app.py
  2. 15
      padelclub_backend/settings_local.py.dist
  3. 1
      requirements.txt

@ -44,12 +44,6 @@ CACHES = {
QR_CODE_CACHE_ALIAS = 'qr-code' QR_CODE_CACHE_ALIAS = 'qr-code'
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels.layers.InMemoryChannelLayer"
}
}
SYNC_APPS = { SYNC_APPS = {
'sync': {}, 'sync': {},
'tournaments': { 'exclude': ['Log', 'FailedApiCall'] } 'tournaments': { 'exclude': ['Log', 'FailedApiCall'] }

@ -17,3 +17,18 @@ DATABASES = {
'NAME': BASE_DIR / 'db.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3',
} }
} }
# CHANNEL_LAYERS = {
# "default": {
# "BACKEND": "channels.layers.InMemoryChannelLayer"
# }
# }
# CHANNEL_LAYERS = {
# "default": {
# "BACKEND": "channels_redis.core.RedisChannelLayer",
# "CONFIG": {
# "hosts": [("localhost", 8300)],
# },
# },
# }

@ -9,3 +9,4 @@ PyJWT==2.8.0
httpx[http2]==0.27.0 httpx[http2]==0.27.0
channels[daphne]==4.1.0 channels[daphne]==4.1.0
twisted[http2,tls]==24.11.0 twisted[http2,tls]==24.11.0
channels-redis==4.2.1

Loading…
Cancel
Save