The simple answer is - you can't.

Django can run in 2 separate ways: Synchronous - via a WSGI server - or
asynchronous via an ASGI server. Websocket requests run via ASGI - so you
need an ASGI server. You can read the official documentation and see your
alternatives here:
https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/

Regards,

Andréas


Den ons 11 jan. 2023 kl 19:41 skrev Bala Subramanyam Vemu <
balasubramanyam.v...@gmail.com>:

> Hi
>
> I am currently using django channels and have deployed them as well
>
> However , we currently want to separate the runworker from runserver
>
> As mentioned in the channels we have to run "python manage.py runserver
> ---noworker"
>
> so that all the websocket requests can be handled separately
>
> how do we pass the arguments  "--runworker" to the wsgi.py, btw we are
> deploying using uwsgi process
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/47bb9c0f-e1fd-4c00-a33a-2d9cd85e9706n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/47bb9c0f-e1fd-4c00-a33a-2d9cd85e9706n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCfT4%2BBC0wvsxLdk6DpR4%3DSq4d3jA4uwbaaJniN%3DODZshw%40mail.gmail.com.

Reply via email to