Opened 4 years ago

Last modified 14 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 Joshua Massover)

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:

  1. Update runserver in django in a way that keeps the daphne import optional.
  2. Add daphne as a dependency to django and update runserver.
  3. Maintain a separate django app that holds the command that integrates daphne with runserver. Reference the app in asgi section of the django documentation.
  4. 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.

Change History (1)

comment:1 by Joshua Massover, 4 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top