How to pass "--runworker --asgi" to wsgi.py

123 views
Skip to first unread message

Bala Subramanyam Vemu

unread,
Jan 11, 2023, 1:42:00 PM1/11/23
to Django users
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 

Andréas Kühne

unread,
Jan 13, 2023, 5:28:12 AM1/13/23
to django...@googlegroups.com
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:

Regards,

Andréas


--
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...@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.

Bala Subramanyam Vemu

unread,
Jan 13, 2023, 8:45:12 AM1/13/23
to Django users
Thank you  Andréas !

Regards
Bala
Reply all
Reply to author
Forward
0 new messages