I am trying to use django channels and templates to implement authentication. I know that there is an authentication section in the official website, but I have a question about the socket, which is created in the client side via templates.
From my understanding, django templates multi-page application, so if I create a socket in login.html
, the socket will be disconnected in main.html
, and I have seen it happen.
Is there a way to keep the socket alive even if I navigate to different pages?