django-debug-panel icon indicating copy to clipboard operation
django-debug-panel copied to clipboard

Doesn't work with Django v2.0

Open katsos opened this issue 7 years ago • 7 comments

It doesn't work with the version 2.0 of Django.
It gives the following error

    from django.core.urlresolvers import reverse, resolve, Resolver404
ModuleNotFoundError: No module named 'django.core.urlresolvers'

According to https://docs.djangoproject.com/en/2.0/releases/2.0/#features-removed-in-2-0 "The django.core.urlresolvers module is removed in favor of its new location, django.urls."

katsos avatar Jan 26 '18 10:01 katsos

It seems like the project is not alive.

legshort avatar Feb 02 '18 02:02 legshort

There is a pending PR to resolve this issue at #29.

SamuelMS avatar May 16 '18 19:05 SamuelMS

Try this version: pip install -e git+https://github.com/Hikaon/django-debug-panel.git#egg=debug_panel

ghost avatar Jul 16 '18 09:07 ghost

change the middleware file //from django.core.urlresolvers import reverse, resolve, Resolver404 from django.urls import reverse, resolve, Resolver404

gorquan avatar Feb 19 '19 03:02 gorquan

As a workaround, to install the PR #29 that has the patch that fixes this issue:

pip install git+https://github.com/Naddiseo/django-debug-panel.git@patch-1

jperelli avatar Aug 28 '19 11:08 jperelli

I think there is also a bigger problem: https://micropyramid.com/blog/understanding-middleware-functionality-in-django2/

Django requires to change the syntax of middleware. @recamshak are you planning to make changes to this project at all? I understand you may not want to still develop it, but it would be beneficial if somebody would at least bring it to the state it works. Maybe consider adding somebody to contributors?

jakubste avatar Nov 25 '19 13:11 jakubste

This is a good replacement to track ajax calls: https://github.com/djsutho/django-debug-toolbar-request-history

Update: Even the built-in History panel does the job.

mtrofimiuk avatar Dec 09 '20 15:12 mtrofimiuk