Opened 5 years ago
Last modified 21 months ago
#31626 closed New feature
Add asgi support to runserver — at Version 1
Reported by: | Joshua Massover | Owned by: | nobody |
---|---|---|---|
Component: | HTTP handling | Version: | 3.0 |
Severity: | Normal | Keywords: | runserver, asgi |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Previous conversation about this ticket can be found on the django forum
It would be great to add an asgi
flag such that runserver will "just work" with ASGI. eg.
./manage.py runserver --asgi
The 4 options I've thought of are the following:
- Update runserver in django in a way that keeps the daphne import optional.
- Add daphne as a dependency to django and update runserver.
- Maintain a separate django app that holds the command that integrates daphne with runserver. Reference the app in asgi section of the django documentation.
- 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 have an initial pr for (1). This code depends on #31594.
Note:
See TracTickets
for help on using tickets.