Skip to content Skip to sidebar Skip to footer

Problem With Django Using Apache2 (mod_wsgi), Occassionally Is "unable To Import From Module" For No Apparent Reason

I have put my Django web site up to my web server and have it set up using apache2 and mod_wsgi.. everything works fine most of the time but occasionally it will just give the erro

Solution 1:

It is working most of the time because you likely have a multi process configuration and only one of the processes is affected.

You can try alternate WSGI script file as documented in:

http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html

The jury is still out as to whether the issue is the differences between development server and proper deployment systems using WSGI, or whether it is users not handling imports properly and causing order dependencies or even import cycles. Problems possibly only come up when URL visited in certain order and thus why random as to when it can happen.

Post a Comment for "Problem With Django Using Apache2 (mod_wsgi), Occassionally Is "unable To Import From Module" For No Apparent Reason"