Presuming you are using Channels/Daphne 1, then the channel layer
configuration is what determines what handles the requests.
If you're seeing environments answer each other's requests, check they
really are using different Redis databases, and consider changing the
prefix setting on the channel layer instead.
On Mon, Feb 19, 2018 at 8:34 AM, Tomáš Ehrlich <tomas.ehrl...@gmail.com>
> Hello everyone,
> I'm running two instances of Daphne on my server (one per environment,
> I'm using UNIX sockets behind nginx, but production requests are sent to
> staging and vice versa.
> Workers and Daphne are using the same settings per environment (I'm using
> Redis as a channel
> layer and each environment uses it's own DB), but how Daphne actually
> knows which workers
> belongs to her?
> Thank you in advance
> 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 email@example.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/
> 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 post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.