How to monkey patch __init__ module in Python?
You can just edit the __init__.py file. There's nothing stopping you and if you do it right nothing bad will happen.
I know, I know, it's dirty and all. I want to know if it's possible to hijack the __init__ module of a Python module to replace it by your own.
I'm asking that because I need to prevent a django lib to start some part of it's init process that make it crashes with our configuration.
And yes, it's better to fix the django lib and send back a patch. Yes, I'm in touch with the author about that. But for now, I need a quick fix.