xenith/django-base-template

Problem with middleware exceptions

jmbarrios opened this issue · 2 comments

I have the following error message:
ImproperlyConfigured: Error importing middleware commonware.middleware: "cannot import name HidePasswordOnException"
I found it was an error with playdoh-libs this error was corrected on the pull #12 of playdoh-lib. I just patch the exception/middleware.py file with the file corrected.
Is there any non-temporal solution to this problem?
I couldn't find where is the reference to this libraries.

This is a problem in commonware (https://github.com/jsocol/commonware). Looks like the latest release is lacking this fix. If you are using commonware 0.4.0 it should have exception/middleware.py already fixed, but not commonware/middleware.py. I'll ask him to spin a new release with both fixes included.

Upgrading to commonware 0.4.1 (which should be on pypi shortly) should fix this issue.