daphne
daphne copied to clipboard
Move runserver command into Daphne.
As part of Channels 4.0 it would be nice to break the hard dependency on Daphne.
See
- https://github.com/django/channels/discussions/1643
- Adding ASGI Support to Runserver - Django Internals - Django Forum
Ideally this would be in Django, but asgiref
doesn't yet provide a simple server implementation.
So the suggestion would be a separate app.
@massover's comment on the forum thread there:
- Add the commands to the daphne repository, perhaps allowing us to add daphne as an installed app so the command is discovered, and reference this in the asgi section of the django documentation.
...I feel like option (4) could make sense as well. This code is specifically tied to daphne. Since daphne is already a project under the django organization, maybe it’s ok to put a command in that package and add as a django app. It’s one fewer separate dependency to install.
As a transitional step, that's probably as easy a way forward as any that have been suggested.