{"action":"created","issue":{"url":"https://api.github.com/repos/jazzband/django-debug-toolbar/issues/853","repository_url":"https://api.github.com/repos/jazzband/django-debug-toolbar","labels_url":"https://api.github.com/repos/jazzband/django-debug-toolbar/issues/853/labels{/name}","comments_url":"https://api.github.com/repos/jazzband/django-debug-toolbar/issues/853/comments","events_url":"https://api.github.com/repos/jazzband/django-debug-toolbar/issues/853/events","html_url":"https://github.com/jazzband/django-debug-toolbar/issues/853","id":166655008,"number":853,"title":"Middleware compatibility with Django 1.10","user":{"login":"valentjedi","id":7038954,"avatar_url":"https://avatars.githubusercontent.com/u/7038954?v=3","gravatar_id":"","url":"https://api.github.com/users/valentjedi","html_url":"https://github.com/valentjedi","followers_url":"https://api.github.com/users/valentjedi/followers","following_url":"https://api.github.com/users/valentjedi/following{/other_user}","gists_url":"https://api.github.com/users/valentjedi/gists{/gist_id}","starred_url":"https://api.github.com/users/valentjedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentjedi/subscriptions","organizations_url":"https://api.github.com/users/valentjedi/orgs","repos_url":"https://api.github.com/users/valentjedi/repos","events_url":"https://api.github.com/users/valentjedi/events{/privacy}","received_events_url":"https://api.github.com/users/valentjedi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-20T18:53:35Z","updated_at":"2016-08-02T07:53:25Z","closed_at":null,"body":"Since Django 1.10 introduced [new middleware style](https://docs.djangoproject.com/en/dev/releases/1.10/#new-style-middleware), existing middlewares should be updated. For now I can suggest possible workaround for impatient Django 1.10 users:\r\n\r\n```python\r\nfrom django.utils.deprecation import MiddlewareMixin\r\nfrom debug_toolbar.middleware import DebugToolbarMiddleware\r\n\r\n\r\nclass AtopdedTo110DebugMiddleware(MiddlewareMixin, DebugToolbarMiddleware):\r\n    pass\r\n```\r\n\r\nAnd then add it to your `MIDDLEWARE` settings:\r\n\r\n`MIDDLEWARE += ['my.middleware.AtopdedTo110DebugMiddleware']`"},"comment":{"url":"https://api.github.com/repos/jazzband/django-debug-toolbar/issues/comments/236829596","html_url":"https://github.com/jazzband/django-debug-toolbar/issues/853#issuecomment-236829596","issue_url":"https://api.github.com/repos/jazzband/django-debug-toolbar/issues/853","id":236829596,"user":{"login":"SalahAdDin","id":5034215,"avatar_url":"https://avatars.githubusercontent.com/u/5034215?v=3","gravatar_id":"","url":"https://api.github.com/users/SalahAdDin","html_url":"https://github.com/SalahAdDin","followers_url":"https://api.github.com/users/SalahAdDin/followers","following_url":"https://api.github.com/users/SalahAdDin/following{/other_user}","gists_url":"https://api.github.com/users/SalahAdDin/gists{/gist_id}","starred_url":"https://api.github.com/users/SalahAdDin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SalahAdDin/subscriptions","organizations_url":"https://api.github.com/users/SalahAdDin/orgs","repos_url":"https://api.github.com/users/SalahAdDin/repos","events_url":"https://api.github.com/users/SalahAdDin/events{/privacy}","received_events_url":"https://api.github.com/users/SalahAdDin/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T07:53:25Z","updated_at":"2016-08-02T07:53:25Z","body":"I found this issue related:\r\n```bash\r\n./manage.py runserver                                                                                                    ✓  1712  02:49:41 \r\n/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.\r\n  \"in MIDDLEWARE_CLASSES.\", Warning)\r\n/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.\r\n  \"in MIDDLEWARE_CLASSES.\", Warning)\r\nPerforming system checks...\r\n```"}}
{"actor":{"display_login":"SalahAdDin"}}