~/talk

How to create admin model views and stand-alone pages (...)

Talkat Django Day Copenhagen 2026 · on Friday, 2026-10-02· [django]
slides:none on file

Shows how to add real admin pages and modelless admin-like pages using only Django core: a markdown preview page and a dumpdata output in a textarea that captures dumpdata via StringIO and has worked for years. Uses extend admin base_site.html, override ModelAdmin.get_urls and admin_view for auth, or register standalone URLs with staff_member_required/permission_required and never_cache. Crucial detail: call admin.each_context and supply title, opts (model._meta), module_name copied from admin options.py history view templates. Code lives on Codeberg/GitHub.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:03Why love Django admin
  3. 3:30Reverse engineering Django admin
  4. 4:34Model admin vs non-model admin pages
  5. 7:02Authentication and permissions
  6. 9:50Context data essentials
  7. 12:19Template and HTML structure
  8. 15:56Live demo setup
  9. 16:40Custom admin page examples
  10. 21:42Base views for custom pages
  11. 25:13Reverse engineering admin options.py
  12. 29:26Summary and resources
  13. 30:50Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.