I have terrible problems with django responding differently to the same requests for no apparent reason.
Sometimes i refresh and I see an error, then I refresh and its g
Unfortunately it sounds as though you're suffering from a common problem overload. It's hard to figure out exactly what's happening when there's so many things that are wrong.
When it gets complicated, sometimes the best solution is to follow a KISS development method. Write small bits of code, and test them to make sure they work as intended.
If you're worried about WSGI, get a small, simple project running first. Then introduce layers of complexity to try and isolate where the issue begins to occur; providing a great way to resolve the error.
Utilise the python unittest.TestCase module and doctests to help you with the python side of error checking.
All the best! :)