recamshak / django-debug-panel

django-debug-toolbar in WebKit DevTools. Works fine with background Ajax requests and non-HTML responses.
BSD 3-Clause "New" or "Revised" License
404 stars 69 forks source link

Fixed deprecation warning in middleware.py for django 2.0 #29

Open Naddiseo opened 7 years ago

Naddiseo commented 7 years ago

Update for django 2.0

Importing from django.core.urlresolvers is deprecated in favor of django.urls.

zetaab commented 6 years ago

can this be merged, currently django debug panel does not work in django 2.0. With this fix I got it working

SamuelMS commented 6 years ago

@recamshak +1 on merge request.

picturedots commented 5 years ago

@Naddiseo line 11 needs to be removed for this to work I think

aymanbagabas commented 4 years ago

Please merge this! Breaks in Django 3.0.

duduklein commented 4 years ago

In django 3.0, the render_to_response in views.py also breaks the installation. it should be changed to render only : https://stackoverflow.com/questions/55911435/django-importerror-cannot-import-name-render-to-response-from-django-shortcu