django-debug-panel
django-debug-panel copied to clipboard
Doesn't work with Django v2.0
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."
It seems like the project is not alive.
There is a pending PR to resolve this issue at #29.
Try this version:
pip install -e git+https://github.com/Hikaon/django-debug-panel.git#egg=debug_panel
change the middleware file //from django.core.urlresolvers import reverse, resolve, Resolver404 from django.urls import reverse, resolve, Resolver404
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
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?
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.