websocket fix

This commit is contained in:
Vasilisk9812 2026-05-27 15:07:42 +09:00
parent 0261b41a71
commit 80e0177be0

View file

@ -45,6 +45,7 @@ MEDIA_ROOT = os.getenv('MEDIA_ROOT', os.path.join(BASE_DIR, 'media')) # Куд
# Application definition
INSTALLED_APPS = [
'daphne',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@ -197,8 +198,8 @@ CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS', 'http://localhost:5173,
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels.layers.InMemoryChannelLayer",
"CONFIG": {
"hosts": [("redis", 6379)],
},
# "CONFIG": {
# "hosts": [("redis", 6379)],
# },
},
}