After upgrading to Django 1.9 or 1.10, LOGGING configurations with django.utils.log.NullHandler throws an exception saying that the NullHandler is not resolvable:
Unable to configure handler 'null': Cannot resolve 'django.utils.log.NullHandler': No module named NullHandler
This can also happen if copy/pasting commonly suggested log configurations into new projects based upon Django 1.9 or 1.10.
How do I resolve this?
django.utils.log.NullHandler
is actually alias to logging.NullHandler
.
Looks like it was removed in 1.9.
Just check your settings (and any other code) and replace django.utils.log.NullHandler
with logging.NullHandler
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With