3 ms·
For websockets, I set the Django framework inside a Tornado thread. By doing that I lose the wsgi functionality (you get only low level stuff, just like you'll
by marcosdumay 13y ago
For websockets, I set the Django framework inside a Tornado thread.
By doing that I lose the wsgi functionality (you get only low level stuff, just like you'll get on java or .net), must synchronize with the normal http server with the DB (what I'll do anyway, since it's the easiest path with Django), and there is some dificulty dealing with signals (the same you'll get with java or .net). And that's all.
Or, TLDR, you lose a few features, that'll make your code resemble a bit more what you'd need to write in java or .net, but preserves most of it.
- euroclydon 13y agoInteresting. If you have any further guidance on that I'd love to bookmark it.