Difficulty trying to have websockets self-contained in application

Not that I’m aware of, at least not that I can see from what I’m understanding of what you have posted here. (Side note: It’s difficult for me to follow your description with having the two situations intermixed. I would find it easier to understand if you posted the two versions separately - the one that works followed by the one that doesn’t.)

The asgi.py file seems to be very sensitive to the order in which things are done. (Side note: See the thread at I get the error "Apps aren't loaded yet." when publishing with Daphne to see one such conversation here about how picky it is.)

1 Like