mirror of
https://github.com/neogeek23/drawshare.git
synced 2026-02-04 19:18:21 +00:00
21 lines
462 B
Python
21 lines
462 B
Python
from django.apps import AppConfig
|
|
|
|
# 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
|
|
|
|
del daphne.server
|
|
|
|
|
|
class ChannelsConfig(AppConfig):
|
|
|
|
name = "channels"
|
|
verbose_name = "Channels"
|
|
|
|
def ready(self):
|
|
# Do django monkeypatches
|
|
from .hacks import monkeypatch_django
|
|
|
|
monkeypatch_django()
|