~/talk

From Legacy to Admin

Talkat DjangoCon US 2014 · 2014-08-30..09-06· [django, databases]
links:none on file
slides:none on file

Demonstration shows django's inspectdb reverse engineers models from MySQL/Postgres, then builds a quick admin and small REST surface. It misidentifies many‑to‑many as three separate models, misses auto‑increment fields (fixed by swapping IntegerField for AutoField), and chokes on composite keys so a new id column is added (added id primary keys to composite‑key tables). Validation and a management command run cleanup; the postsync tool finds one bad profile (postsync found one bad row). Inspectdb output overwrites code and should run before syncdb.

AI-written summary · about

  1. 0:00Start
  2. 7:45Primary Loops
  3. 11:28Inspect Db
  4. 12:46Related Name Collision
  5. 15:15Add a User
  6. 16:00Composite Primary Keys
  7. 20:11Management Command
  8. 20:38Post Sync
~/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.