February 26, 2008

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

Posted in Software at 00:49 by Graham King

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!

Leave a Comment

Note: Your comment will only appear on the site once I approve it manually. This can take a day or two. Thanks for taking the time to comment.