I am creating my own application inspired from the Channels 2.0 tutorial. However, I am unable to establish WebSocket connection. Daphne complains for 404 saying the websocket URL can not be found. I am not sure where the error is. UPDATE: My Daphne is running behind an nginx server. The nginx config is updated as well: My directory structure is