Graham King

Solvitas perambulum

Finally an explanation to mod_python: (Re)importing module 'django.core.handlers.modpython'

software

If you use Django with Apache, no doubt you have noticed lots of these lines in your log file:

mod_python: (Re)importing module ‘django.core.handlers.modpython’

Well, over on django-users Graham Dumpleton finally cleared it up:

You can ignore these messages from mod_python. You will see them every time Apache starts up a new child process for handling requests. It is just telling you that it is importing the handler for mod_python for the first time for that process.

Apparently this has been fixed in mod_python 3.3.1:

mod_python shouldn’t have really ever been making sys.path modules reloading candidates as it causes too many problems. The newest version of mod_python addresses the problems around that by separating sys.path imports from its own.

So now you know!