Search code examples
djangoapachemod-wsgiwampserver

Django + mod_wsgi + apache + wamp optimization technique for windows


I am trying to host my Django App to Wamp in Windows 7. I already configured mod_wsgi correctly and had run a test project to verify it.

However, the server is really taking time to load as I migrated my dev project. I have read articles about optimizing mod_wsgi performance by enabling mod_wsgi daemon mode on non-Windows platforms.

My questions is: Is there a way to optimize mod_wsgi performance in Windows platform?

Side note: Its already 30 minutes since I have tried to access my django project and the page is still loading. There is no error log generated in Apache error log and the Wamp server is still running.


Solution

  • If it hangs indefinitely it is probably this issue:

    This can be caused by certain third party Python modules which have C extensions, which have not been implemented properly so they work in Python sub interpreters.

    Presuming your are only hosting the one WSGI application, add:

    WSGIApplicationGroup %{GLOBAL}