djsutho / django-debug-toolbar-request-history

BSD 3-Clause "New" or "Revised" License
132 stars 23 forks source link

Documentation of Ajax usage #32

Open OskarPersson opened 4 years ago

OskarPersson commented 4 years ago

Are there any documentation or examples on how to use this using ajax?

I'm thinking if it is possible to use this library to create something similar to MiniProfiler by getting the old requests from the backend by utilizing ajax from the frontend (JS).

djsutho commented 4 years ago

Sorry @OskarPersson I missed this till now. I'm not familiar with MiniProfiler but django-debug-toolbar-request-history is an extension to django-debug-toolbar which allows access to the same data as django-debug-toolbar as well as data for requests other than the current one.

Once installed you can click on the Request History tab to display a list of recorded requests (as pictured)

request history panel

and then click on the request you are interested in to load the data for that request (you can then browse the data as you would a normal request in django-debug-toolbar).