~/talk

Finite State Machine (FSM) in Django

Talkat Python Web Conf 2020 · 2020-06-17..06-19· [django]
slides:none on file

Shows how to model real workflows in Django with django-fsm using an FSMField, decorator-based transitions, and built-in methods to enumerate and surface available user transitions. Demonstrates sending email during transitions, hooking pre/post signals, logging every change with django-fsm-log, producing diagrams via graph_transitions, and preventing race conditions with an optimistic locking / concurrent-transition mixin. Includes concrete examples (student program change, clinical case reports) and a sample project that pushes workflow updates to a React UI via WebSockets.

AI-written summary · about

  1. 0:00Introduction
  2. 0:27Calvins background
  3. 1:26What are workflows
  4. 2:42What is a finite state machine
  5. 3:43Simple example
  6. 5:20State
  7. 7:11Collaboration
  8. 8:06Example
  9. 12:55Triggers
  10. 13:10Django
  11. 14:47Django FSM
  12. 17:45Django Workflow State
  13. 18:29Django Via Transitions
  14. 22:52Contribute to Class
  15. 24:12FSM Signals
  16. 25:32Post Transition Example
  17. 26:12DjangoTR
  18. 27:15Concurrent Transitions
  19. 28:12Audit Logs
  20. 29:02Django Admin
  21. 30:10FSM First Strategy
  22. 30:37Graph Transitions
  23. 31:12Graph Output
  24. 32:21Wrapup
  25. 33:28Github
~/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.