Skip to content

Commit

Permalink
Removed runserver command.
Browse files Browse the repository at this point in the history
Runserver is added to Daphne in django/daphne#429 allowing users of
other ASGI servers to use Channels without requiring Daphne and
Twisted.

To use add daphne to INSTALLED_APPS before django.contrib.staticfiles:

INSTALLED_APPS = [
    "daphne",
    ...
]
  • Loading branch information
carltongibson committed Aug 8, 2022
1 parent 1b17b23 commit 2a9642e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 195 deletions.
14 changes: 1 addition & 13 deletions channels/apps.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
# 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()
verbose_name = "Channels"
13 changes: 0 additions & 13 deletions channels/hacks.py

This file was deleted.

169 changes: 0 additions & 169 deletions channels/management/commands/runserver.py

This file was deleted.

0 comments on commit 2a9642e

Please sign in to comment.