-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Middleware compatibility with Django 1.10 #853
Comments
I found this issue related: ./manage.py runserver ✓ 1712 02:49:41
/home/salahaddin/Proyectos/makeintegrity/lib/python3.5/site-packages/debug_toolbar/settings.py:189: Warning: Please use an explicit setup with the debug_toolbar.middleware.DebugToolbarMiddleware after django.middleware.gzip.GZipMiddlware in MIDDLEWARE_CLASSES.
"in MIDDLEWARE_CLASSES.", Warning)
/home/salahaddin/Proyectos/makeintegrity/lib/python3.5/site-packages/debug_toolbar/settings.py:189: Warning: Please use an explicit setup with the debug_toolbar.middleware.DebugToolbarMiddleware after django.middleware.gzip.GZipMiddlware in MIDDLEWARE_CLASSES.
"in MIDDLEWARE_CLASSES.", Warning)
Performing system checks... I'd maked automatic install. |
@SalahAdDin It is not really related. The fact that debug middleware should be placed after GZipMiddlware is I think in first page of docs in big |
Automatic installation install all if i don't want install manually. Oh, i understand you. |
I can verify that this issue disable the debug toolbar button, i have to comment the |
@valentjedi - thank you for the workaround! Related: the documentation should also be updated: https://django-debug-toolbar.readthedocs.io/en/stable/installation.html#middleware |
any chance you can push a new release with this fix? |
Hi, sorry if adding a comment on a closed ticket. the proposed solutions works for me only with python2.7. Whe in Python3.5 i get the following error:
|
@sandroden |
Is current PYPI package version the new version? |
Yes AFAIK. Anyway, in my current setup (django 1.10.2 and debug-toolbar 1.6) I just remove this workaround and add |
Yes I pushed a release with the updated middleware this week. |
I'm not seeing the update on pypi. Is only on github?
|
Ignore my previous comment. I missed the Python 3.5 pull request. |
Since Django 1.10 introduced new middleware style, existing middlewares should be updated. For now I can suggest possible workaround for impatient Django 1.10 users:
And then add it to your
MIDDLEWARE
settings:MIDDLEWARE += ['my.middleware.AtopdedTo110DebugMiddleware']
The text was updated successfully, but these errors were encountered: