-
-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
1b17b23
commit 2a9642e
Showing
3 changed files
with
1 addition
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.