-Updated middleware setting to use use middleware insted of
middleware_classes
-github install of django-method-override fork to support
new style middleware in django1.11
This commit is contained in:
Ayub-khan
2020-02-11 12:45:54 +05:00
parent a9bd66b480
commit d3a02bc3e5
16 changed files with 18 additions and 18 deletions

View File

@@ -23,7 +23,7 @@ def apply_settings(django_settings):
django_settings.FIELDS_STORED_IN_SESSION = ['auth_entry', 'next']
# Inject exception middleware to make redirects fire.
django_settings.MIDDLEWARE_CLASSES.extend(
django_settings.MIDDLEWARE.extend(
['third_party_auth.middleware.ExceptionMiddleware']
)