Skip to content

Commit

Permalink
Removed runserver command. (#1897)
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 2c56a17
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 194 deletions.
12 changes: 0 additions & 12 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()
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 2c56a17

Please sign in to comment.