[Answer]-Mounting a Django project with unix socket

1👍

You could use something like Gunicorn to listen on both a UNIX socket and a TCP port.

In order to distinguish between the two in your views, I’d simply run two processes – One that listens on the TCP port and one for the UNIX socket. When starting said process, specify an environment variable which you can later access in your view.

👤ozk

Leave a comment