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

AJAX Support?

Open jgbishop opened this issue 7 years ago • 1 comments

Are there any plans to support AJAX requests? I'd love to be able to examine the SQL queries that are issued for those kinds of calls, but this panel only seems to monitor primary requests.

jgbishop avatar Jan 18 '18 22:01 jgbishop

AJAX support would be difficult to support, since the Chrome panel can only get access to data in the DOM of the page you are browsing. It would require custom javascript in your application's templates to fetch the debug data and make it available to the panel.

If your REST endpoints are built using Django Rest Framework, however, the debug panel is compatible with the browsable API, so you can introspect your AJAX calls in that way.

ckinsey avatar Jan 24 '18 17:01 ckinsey