Where do you want to detect this? There's no official way of knowing,
because you're meant to detect based on features/what gets called.

Andrew

On Thu, Jul 19, 2018 at 2:12 PM Rafis Ganeev <rafisgane...@gmail.com> wrote:

> We are running same django project in WSGI mode for handling HTTP requests
> and in ASGI mode for handling WebSockets. For WSGI mode we are using
> **gunicorn3** server:
>
>     gunicorn3 --pythonpath . -b 0.0.0.0:8000 chat_bot.wsgi:application
>
> For ASGI mode we are using **daphne** server:
>
>     daphne --root-path . -b 0.0.0.0 -p 8001 chat_bot.asgi:application
>
> How to programatically detect which mode currently is running
> **GUnicorn+WSGI** or **Daphne+ASGI**?
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4ec22aa6-e69e-4cb6-8463-d3a9eef4728e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4ec22aa6-e69e-4cb6-8463-d3a9eef4728e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFwN1urgCsAudE2LLea9MEQGPFeHX0qP%3DzHYfvA%2ByVHycJ9xLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to