Generateurv2/backend/env/lib/python3.10/site-packages/channels/apps.py

20 lines
500 B
Python
Raw Normal View History

2022-06-24 17:14:37 +02:00
# We import this here to ensure the reactor is installed very early on
# in case other packages accidentally import twisted.internet.reactor
# (e.g. raven does this).
import daphne.server
from django.apps import AppConfig
assert daphne.server # pyflakes doesn't support ignores
class ChannelsConfig(AppConfig):
name = "channels"
verbose_name = "Channels"
def ready(self):
# Do django monkeypatches
from .hacks import monkeypatch_django
monkeypatch_django()