~/talk

How do debug tool bars for web applications work?

Talkat PyCon Australia 2014 · 2014-08-01..08-05· [python, web-platform]
slides:none on file

Django debug toolbar hooks into Django via middleware and view handlers, captures request data and static assets, and injects toolbar HTML before </body> while saving detailed data to cache with a stores only 10 requests by default retention, which breaks for concurrent users and AJAX-heavy pages. Workarounds use mod_wsgi/mod_wsgi-express and explicit URL handlers; New Relic Python agent already solves safe HTML injection and production-grade monitoring, suggesting a unified WSGI middleware approach plus a local developer mode that proved practical in demos.

AI-written summary · about

  1. 0:00Intro
  2. 0:41What are debug toolbars?
  3. 1:39Application performance data
  4. 2:03Request params and cookies
  5. 2:38Django quick setup
  6. 3:03Django development server
  7. 3:33Lack of initialisation hooks
  8. 4:27Django explicit setup
  9. 4:56URL configuration
  10. 5:29Middleware classes
  11. 5:54Allowed IP addresses
  12. 6:32Evil hacks be gone
  13. 6:48The awesome mod_wsgi express
  14. 7:30Testing mod_wsgi express works
  15. 7:54Running mod_wsgi is not hard
  16. 8:51Collecting of static files
  17. 9:18Mandatory django.contrib.staticfiles
  18. 9:39Running mod_wsgi express
  19. 10:43Requirements for debug toolbar
  20. 11:11Debug toolbar middleware
  21. 11:24Django request handling phases
  22. 11:54Modification of the response
  23. 12:25Injection of toolbar at end of body
  24. 13:28Distinct requests for drill down
  25. 14:00Stored data has a finite lifetime
  26. 14:59Displaying the toolbar inline
  27. 15:28History of recent requests
  28. 16:01The debug toolbar family tree
  29. 17:54Using a WSGI middleware.
  30. 18:31WSGI and streaming responses
  31. 19:26Insertion at the end of the body
  32. 20:09On document ready run action
  33. 20:58What about the UI?
  34. 21:54Integrating performance monitoring
  35. 22:33Local developer mode
  36. 23:11Harnessing New Relic
  37. 24:26Maybe, maybe not
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.