mirror of
https://github.com/django/daphne.git
synced 2025-10-25 13:01:08 +03:00
22 lines
651 B
Python
22 lines
651 B
Python
__version__ = "0.8"
|
|
|
|
# Load backends, using settings if available (else falling back to a default)
|
|
DEFAULT_CHANNEL_BACKEND = "default"
|
|
|
|
from .backends import BackendManager # isort:skip
|
|
from django.conf import settings # isort:skip
|
|
|
|
channel_backends = BackendManager(
|
|
getattr(settings, "CHANNEL_BACKENDS", {
|
|
DEFAULT_CHANNEL_BACKEND: {
|
|
"BACKEND": "channels.backends.memory.InMemoryChannelBackend",
|
|
"ROUTING": {},
|
|
}
|
|
})
|
|
)
|
|
|
|
default_app_config = 'channels.apps.ChannelsConfig'
|
|
|
|
# Promote channel to top-level (down here to avoid circular import errs)
|
|
from .channel import Channel, Group # NOQA isort:skip
|