Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Django Middleware #7

Open
mwoya opened this issue Jul 30, 2017 · 1 comment
Open

Django Middleware #7

mwoya opened this issue Jul 30, 2017 · 1 comment

Comments

@mwoya
Copy link

mwoya commented Jul 30, 2017

Following your code, I got some error when implementing JWT middleware.
after inserting

backend.middleware.JWTMiddleware',

The issue is my middleware is
MIDDLEWARE = [
[...]
'backend.middleware.JWTMiddleware',
[...]

I found that MIDDLEWARE is the newer version and is not compatible with your code.
the solution is to change my setting into MIDDLEWARE_CLASSES.

I'm new in programming, I don't know if this information is useful.

@mbrochh
Copy link
Owner

mbrochh commented Aug 19, 2017

Good point! I will soon run this whole tutorial again. I can only imagine that there was a new Django version released in the meantime and that's why the name of the setting has now changed. I will update the tutorial so that it uses pinned versions for everything to avoid such conflicts in the future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants