Daphe with DRF

is there anyone used Daphe in DRF?
how to run Daphe server after running runserver… ?

thank you

It’s the other way around. You would run DRF in Daphne just like you use it anywhere else. Daphne replaces runserver.
However, last i heard, DRF doesn’t support async views, so you can’t do it yet.

is there a way to run daphne in vbscript? or outside vs code?

Set WshShell = CreateObject(“WScript.Shell”)

WshShell.Run “cmd /c daphne -b 0.0.0.0 -p 8001 backendD.asgi:application”, 1,

You can run daphne the same way you run anything else.

See the docs at GitHub - django/daphne: Django Channels HTTP/WebSocket server