~/talk

Red User, Blue User, MyUser, auth.User

Talkat PyCon AU 2017 · 2017-08-03..08-08· [python, security]
slides:none on file

Django 1.5 adds true custom user models: choose either AbstractBaseUser (password + last_login) or AbstractUser (full fields) and register it with the AUTH_USER_MODEL setting. Implement a custom manager, creation/change forms and admin class, use get_user_model() for queries, and prefer profiles for noncore data. Changing the user model later is painful — set once before first migration — and watch reverse lookup names or set related_name. Advanced option: mark models swappable via Meta.swappable for pluggable domains.

AI-written summary · about

  1. 0:00Introduction to custom users
  2. 1:32Problems with naming
  3. 7:00Identity and user models
  4. 10:20Gender and identity
  5. 13:30Implementing custom users
  6. 17:36Best practices for models
  7. 21:34Using profile models
  8. 26:11Advanced usage and conclusion
~/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.