RAHHH
This commit is contained in:
19
backend/lib/python3.12/site-packages/channels/apps.py
Normal file
19
backend/lib/python3.12/site-packages/channels/apps.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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()
|
||||
Reference in New Issue
Block a user