I had a weird bug.
My Django application appeared to just freeze. When I open a webpage, it just hangs. There is no noticable high load or CPU or memory usage on my server. There is no apache access log or error log messages. Other static apache websites I have hosted on the same machine, with the same apache instance, work fine. It's just the Django… hanging.
This is a weird problem, and is caused by scipy being a python library that's written in C, and there's some complication with the python GIL and mos_wsgi, which means it'll hang.
Luckily, there's a simple fix. You have to add this line to your Apache configuration file.
And then it all works fine.
Previous Post: ← ascii_sparks - simple textual sparklines in python Next Post Using branches with git to go back in time →