fabiocaccamo / django-maintenance-mode

:construction: :hammer_and_wrench: shows a 503 error page when maintenance-mode is on.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1.10 MIDDLEWARE Compliant

fission6 opened this issue · comments

commented

this should inherit

from maintenance_mode.middleware import MaintenanceModeMiddleware

https://docs.djangoproject.com/en/1.10/topics/http/middleware/#upgrading-pre-django-1-10-style-middleware

Agreed, changing this line fixed error for me. Fabio could you also change it in repo?

@fission6, @connexion2000 I just pushed the fix on master, could you check it?
If it's ok I will release a new version on pypi.