Skip to content

Conversation

massover
Copy link
Contributor

@massover massover commented May 24, 2020

This code adds support to run an asgi daphne based development server while leaving the default wsgi.

./manage.py runserver --asgi

https://code.djangoproject.com/ticket/31626

Joshua Massover added 3 commits May 24, 2020 13:12
We use sync_to_async because there is no native async file support
@massover massover changed the title Add asgi runserver Add asgi support to runserver May 24, 2020
Daphne is used as the asgi server. It is optional. The command will error if daphne is not installed
@massover massover force-pushed the add-asgi-runserver branch from 108c401 to 9be7fce Compare May 25, 2020 20:11
@carltongibson
Copy link
Member

carltongibson commented May 26, 2020

As per the ticket, I think we need to pin this down a bit more before we proceed. (Let's follow up on the forum thread.)

I'm a little worried about coding in the dependency on Daphne, even if supposedly optional. (Install channels or similar seems quite lightweight, and more flexible...)

Closing for now. We can reopen if we decide to proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants