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 # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'daphne',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
@ -197,8 +198,8 @@ CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS', 'http://localhost:5173,
CHANNEL_LAYERS = { CHANNEL_LAYERS = {
"default": { "default": {
"BACKEND": "channels.layers.InMemoryChannelLayer", "BACKEND": "channels.layers.InMemoryChannelLayer",
"CONFIG": { # "CONFIG": {
"hosts": [("redis", 6379)], # "hosts": [("redis", 6379)],
}, # },
}, },
} }