THE WEB BOOK
What changed
New sections and revisions to the book, newest first. Pre-release chapters still change after review; an update here does not mean a chapter is final.
- Chapter 6: Creating the project and understanding its files Whole chapter Noted that Chapter 53 moves Otahque to Django 6.1.3, a security release.
- Chapter 8: Settings, environments, dependencies, and Git Whole chapter Noted that Chapter 53 changes the Django pin to 6.1.3.
- Chapter 39: Middleware and context processors Whole chapter Said what Chapter 53 does with this middleware: it supports both sync and async servers, kept so by a test.
- Chapter 51: Filtering, pagination, throttling, and API documentation Whole chapter Noted that Chapter 53 keeps httpx 0.28.1 and when it is looked at again.
- Chapter 52: Webhooks and reliable external integrations Whole chapter Said what Chapter 53 adds to the Webhooks page: a Send test button that waits for the partner's answer.
- Chapter 53: Async Django, ASGI, and sync/async boundaries Whole chapter Added Chapter 53: concurrency and the event loop; WSGI and ASGI; Daphne's runserver and uvicorn; the ORM from async code; async-capable middleware; Send test; streaming under ASGI; measuring sync and async views; a verification checklist, quiz and challenge, and interview questions.
- Chapter 54: Channels and real-time updates Whole chapter Added Chapter 54: WebSockets and polling; consumers, groups, and the channel layer; access checked on connect and again; sending after commit; the polling fallback; two server processes; the fourth milestone's acceptance trace; a verification checklist, quiz and challenge, and interview questions.
- Chapter 50: API authentication and permissions Whole chapter Added Chapter 50: authentication and authorization; 401 and 403; token design; Bearer authentication; scopes; keeping tokens out of logs; the API tokens page; Sam's script; a verification checklist, quiz and challenge, and interview questions.
- Chapter 51: Filtering, pagination, throttling, and API documentation Whole chapter Added Chapter 51: why lists are paged; offset and cursor paging; django-filter; the plus sign in addresses; throttling and NUM_PROXIES; Swagger UI; an httpx client with safe retries; a verification checklist, quiz and challenge, and interview questions.
- Chapter 52: Webhooks and reliable external integrations Whole chapter Added Chapter 52: polling and pushing; Standard Webhooks; HMAC signatures; at-least-once delivery; SSRF and address checks; secret rotation; the Webhooks page; a partner's receiver; a verification checklist, quiz and challenge, and interview questions.
- Chapter 33: Transactions, concurrency, and the last available seat Section 33.3 Step 3: the organizer() test helper makes the permissions first, so the race tests also pass when a test that restores its own data (from Chapter 41) runs just before them.
- Chapter 47: API design and HTTP contracts Whole chapter Added Chapter 47: an API contract written first; resources and representations; HTTP methods and status codes; problem details; ETags and conditional GET; CORS for partner sites; OpenAPI; a verification checklist, quiz and challenge, and interview questions.
- Chapter 48: DRF serializers and validation Whole chapter Added Chapter 48: DRF and its defaults; serializers; overposting; one rule, two doors; times with offsets; If-Match, 412, and 428; dry runs for agents; the error summary; a verification checklist, quiz and challenge, and interview questions.
- Chapter 49: API views, generic views, viewsets, and routers Whole chapter Added Chapter 49: DRF's layers; APIView, generic views, and viewsets compared; routers; @action; one path for publish, cancel, and delete; drf-spectacular; a deploy check for the browsable API; a verification checklist, quiz and challenge, and interview questions.
- Chapter 28: Sessions, cookies, and time zones Section 28.2 Figure 28.5: a stored token is withdrawn by replacing it, as Chapter 46's check-in codes are.
- Chapter 45: HTMX and progressive enhancement Whole chapter Added Chapter 45: progressive enhancement; htmx served and pinned; partials chosen per request with Vary; Register and Cancel in place with an out-of-band count; a native dialog; Add question; sign-in, CSRF, focus, and screen-reader announcements; htmx 2 and 4 compared; a verification checklist, quiz and challenge, and interview questions.
- Chapter 46: Waitlists, check-in, and registration state transitions Whole chapter Added Chapter 46: places, turns, and attendance as three facts; promotion inside the lock; a unique field added in three migrations; check-in codes as keys, not authority; the check-in window; the door and scan pages; the Milestone 3 trace; a verification checklist, quiz and challenge, and interview questions.
- Chapter 42: File uploads and storage Whole chapter Added Chapter 42: how uploads travel, the checks a picture passes, storage and serving, deleting after commit, copies, cleanup, member photos, the gallery and organizer photos, a verification checklist, quiz and challenge, and interview questions.
- Chapter 43: Email delivery and templates Whole chapter Added Chapter 43: what "sent" means, Mailpit, mail settings and links, the five messages after commit, the failure path, announcements and the opt-out, a verification checklist, quiz and challenge, and interview questions.
- Chapter 44: Background tasks, scheduling, and retries Whole chapter Added Chapter 44: the task interface, backend, worker, and scheduler; deliveries, retries, and the outbox; reminders; Task Scheduler, cron, and systemd timers; Celery compared; a verification checklist, quiz and challenge, and interview questions.
- Chapter 38: Advanced admin and formsets Sections 38.3–38.5 Step 11 now gives the Administrators group the permission to read each event's questions in the admin, with a data migration (registrations 0005), a test signed in as an Administrators member, and Chapter 30's group test changed on purpose; 423 tests (decision N38.13).
- Chapter 39: Middleware and context processors Whole chapter Added Chapter 39: middleware and its order, a chain built by hand, a request id with a logging filter, sign-in by default, removing redundant checks, a context processor, error pages with a reference, a verification checklist, quiz and challenge, and interview questions.
- Chapter 40: Signals, application lifecycle, and system checks Whole chapter Added Chapter 40: the start-up sequence and ready(), signals and their cost, the profile receiver as the Custom Way, allauth's signals, system checks and deploy checks, the profile card, a verification checklist, quiz and challenge, and interview questions.
- Chapter 41: Management commands and data import/export Whole chapter Added Chapter 41: management commands, fixtures, seed commands and data migrations, the import and its runbook, the attendee download with its formula guard and BOM, a verification checklist, quiz and challenge, and interview questions.
- Chapter 35: Class-based views and dispatch Whole chapter Added Chapter 35: class-based views and dispatch, method tables written before any change, a hand-made as_view() and Django's View, the event page and the details page as classes, decorator order and the setup() trap, a labelled facts list and registration card, ADR-006 with all 19 views, a verification checklist, quiz and challenge, and interview questions.
- Chapter 36: Generic display views and pagination Whole chapter Added Chapter 36: generic display views, pagination, one stable order, checkbox filters, member lists scoped to their owner, accessible page links, event cards, a verification checklist, quiz and challenge, and interview questions.
- Chapter 37: Generic editing views and access mixins Whole chapter Added Chapter 37: generic editing views, mixins and the MRO, ManageEventMixin, UserPassesTestMixin compared, the DELETE verb closed, the lock kept on the edit page, form groups and a danger area, a verification checklist, quiz and challenge, and interview questions.
- Chapter 38: Advanced admin and formsets Whole chapter Added Chapter 38: storing per-event answers, formsets and the management form, the question builder, a form built at run time, registering with answers, the attendee table, changing answers, copying and archiving questions, admin improvements, a verification checklist, quiz and challenge, and interview questions.
- Chapter 34: Testing fundamentals and first-release acceptance Whole chapter Added Chapter 34: test kinds and tools, a clean copy as CI sees it, tests in packages with shared helpers, coverage under --parallel and the tests it revealed, an order-dependent test fixed, tblib for parallel failures, a skip link and message colours, the M2 acceptance trace and its own test, check.py and a GitHub Actions workflow on PostgreSQL, a red run on a branch, the release checklist and v0.1.0, a verification checklist, quiz and challenge, and interview questions.
- Chapter 32: Moving to PostgreSQL Whole chapter Added Chapter 32: why a database server, PostgreSQL 18 and psycopg, moving data between two engines with natural keys and a comparison, sort order with the builtin C.UTF-8 collation, a template database for tests, a backup restored and compared, ADR-005, wider pages and two-column forms, a verification checklist, quiz and challenge, interview questions, and an optional lab reading a table Otahque does not own.
- Chapter 33: Transactions, concurrency, and the last available seat Whole chapter Added Chapter 33: transactions and READ COMMITTED, a row lock by hand in two psql windows, a race test that fails every time without the fix, select_for_update() with checks on the locked row, a lock time limit and a busy message, publish and cancel that read the event again, the capacity floor under the lock, a version check on the edit page and in the admin, clearer full and closed states, a verification checklist, quiz and challenge, and interview questions.
- Chapter 2: Business requirements, product scope, and user stories Sections 2.3, 2.5, and 2.6 Updated the timing policy after the Chapter 31 decisions: the opening time may be left blank (registration then opens when the event is published), and members may cancel until the event starts, with a cancellation after the deadline marked late. Figure 2.6, the Mini-Challenge answer, and an interview listing changed to match.
- Chapter 31: Event registration and cancellation Whole chapter Added Chapter 31: the registration window and its database rules, a data migration for existing events, rules as named reasons, register() with a savepoint and a backstop, cancel() that changes a place once, late cancellations, phone numbers with django-phonenumber-field, the Register button and phone page, My registrations, the cancel page, the attendee list and its matrix, fifty-four tests written first, a verification checklist, quiz and challenge, and interview questions with an optional SQLite lab.
- Chapter 30: Permissions, ownership, and roles Whole chapter Added Chapter 30: authentication versus authorization, groups and a custom permission, the permission matrix and its tests, IDOR with 404 and 403, shared rules for organizer access with the last organizer kept, the Organizer access page with re-authentication, a safer admin, the audit trail, twenty-nine tests written first or kept as guards, a verification checklist, quiz and challenge, and interview questions with an optional backend lab.
- Chapter 29: Account security: passwords, sign-in codes, and two factors Whole chapter Added Chapter 29: 15-character password rules, password change and set, a reset that reveals nothing with one-hour single-use links, Otahque's account emails and notices, sign-in by emailed code, two-factor sign-in with an authenticator app and recovery codes, the admin's sign-in through allauth, thirty-three tests written first or kept as guards, a verification checklist, quiz and challenge, and interview questions.
- Chapter 26: Publishing, cancelling, and deleting an event Whole chapter Added Chapter 26: an event's states and moves, readiness kept in the model, a description field with one migration (sqlmigrate, rollback), the model's own URL, a My events page, publishing, cancelling, deleting a draft and copying an event, why a change of state is never a GET, the cancelled event shown with a tag, forty-one tests written first, a verification checklist, quiz and challenge, and seven interview questions including migrations.
- Chapter 27: Authentication and account workflows Whole chapter Added Chapter 27: authentication and sessions, django-allauth for a custom user, sign-up with a display name and time zone, valid and permanent addresses, a Profile and an own-account page, the members' sign-in page and sign-out by POST, Google and GitHub with safe linking, allauth pages in Otahque's style, organizers' names on event pages, twenty-five tests written first, a verification checklist, quiz and challenge, and interview questions.
- Chapter 28: Sessions, cookies, and time zones Whole chapter Added Chapter 28: cookies and sessions, messages across a redirect with a close button, a filter remembered in the session, sign-out and expiry, the browser's time zone, middleware with the admin left in UTC, typed times read in the event's zone, both times on event pages, signing and tokens, thirty-four tests written first or kept as guards, a verification checklist, quiz and challenge, and interview questions.
- Chapter 23: Django admin fundamentals Section 23.3 The admin walkthrough now notes that, from Chapter 25, the admin also refuses a capacity below the places already taken, because that rule lives in the model.
- Chapter 25: Editing an event, and the validation lifecycle Whole chapter Added Chapter 25: editing with a ModelForm and an instance, the validation lifecycle in order, who may edit an event (403 and 404), saved times shown in the event's zone and kept when untouched, a zone change confirmed with both readings, capacity guarded in the form and the model, crafted fields proved harmless, a lost update named for Chapter 33, twenty-seven tests written first, a verification checklist, quiz and challenge, and interview questions.
- Chapter 23: Django admin fundamentals Whole chapter Added Chapter 23: the Django admin site as the administrator's tool, with its address in settings, model registration and list options, permissions that hold for every account, times typed in UTC beside each local start, Chapter 21's rules on the admin's forms, read-only history, the audit log, nineteen tests written first, a verification checklist, quiz and challenge, and interview questions.
- Chapter 23: Django admin fundamentals Section 23.6 The L3 interview answer now says that Otahque's own event form, from Chapter 24, reads typed times in the event's own zone.
- Chapter 24: Django forms Whole chapter Added Chapter 24: HTML forms and POST, Django's Form and ModelForm, where each rule lives, times read in the event's own zone, sign-in and permission checks, drafts visible only to organizers and the administrator, Post/Redirect/Get with messages, CSRF tokens, accessible styled fields, twenty tests written first, a verification checklist, quiz and challenge, and interview questions.
- Chapter 2: Business requirements, product scope, and user stories Section 2.3 Added the time-zone rule: pages show the event's local time and, when it differs, the visitor's own time, from the member's profile setting, else the browser, else UTC.
- Chapter 2: Business requirements, product scope, and user stories Section 2.3 Added end times to the acceptance criteria, and the rule that events which have ended stay listed after current and upcoming ones, marked as past. Visitors also see how many places are left on an event still to come.
- Chapter 15: Relational databases and our first ERD Section 15.3 The proposed EVENT entity gains an end time, ends_at, and the rule that an event ends after it starts; Figure 15.3 redrawn.
- Chapter 16: Django models and field choices Sections 16.2, 16.3, 16.4, and 16.6 The Event model gains ends_at, a DateTimeField; Figures 16.1 and 16.4 redrawn; the L2 and L4 proofs include the end time.
- Chapter 18: Migrations and schema evolution Section 18.3 The first migration and the slug lab's events include the end time.
- Chapter 19: ORM fundamentals Sections 19.3, and 19.6 Events created in the shell have end times, the test helper sets a default end, and the detail page shows From and Until in the event's time zone.
- Chapter 19: ORM fundamentals Section 19.1 Corrected the note on the admin site: it is the administrator's tool for checking and correcting data, and organizers manage their own events on Otahque's pages from Chapter 26.
- Chapter 20: Relationships between models Section 20.3 Test events have end times; one lab listing reformatted to fit the page.
- Chapter 21: Validation, constraints, and data integrity Sections 21.2–21.4 Two more database rules: a registration is never cancelled before it was made, and an organizer assignment never revoked before it started (CheckConstraint with F); 51 tests; test times no longer depend on a fixed date.
- Chapter 21: Validation, constraints, and data integrity Sections 21.2–21.6 New database rule: an event ends after it starts (CheckConstraint with F), with one more test (49), an audit question, and the migration output.
- Chapter 22: QuerySets, managers, and query composition Sections 22.3, and 22.5 Step 9's F audits now check rows against Chapter 21's time rules, and the quiz explains why an empty value fails a filter but passes a CHECK; Step 7 says why indexes wait for Chapter 56; 58 tests. The L5 answer now sets the boundary as fat models, thin views, and explains why FastAPI projects with SQLAlchemy use repositories while Django's QuerySets already fill that role; Figure 22.7 updated. Step 3 now says the tests check behaviour and query counts, never which method a view calls. The Custom Way now links to the L5 repository question.
- Chapter 22: QuerySets, managers, and query composition Whole chapter New Step 8: both event pages show how many places are left on events still to come ("N of M places left" or "Full"), counted by one annotation, with_places(), so the list stays at two queries; 56 tests; eleven steps.
- Chapter 22: QuerySets, managers, and query composition Whole chapter The list page now shows upcoming events first and past events after them, faded: new upcoming(now) and past(now) methods, a new Step 6 that changes the list-page tests first, the template, and a stylesheet build; 54 tests; steps renumbered (ten steps). Step 7 now says which pages will use active() and that it does not by itself prevent N+1 queries.
- Chapter 22: QuerySets, managers, and query composition Sections 22.2, and 22.6 Corrected references to the admin site: it is the administrator's tool, and organizers such as Sam see counts on Otahque's own organizer pages in later chapters.
- Chapter 1: Otahque: the problem and the people Whole chapter Clarified the opening, added a table of common problems in a first brief and how to repair them, and renumbered the later tables.
- Chapter 2: Business requirements, product scope, and user stories Whole chapter Reordered Step 2 so that acceptance criteria are defined before the common mistake about them, removed a repeated definition and a duplicate readiness checkpoint, and aligned the interview story with the one in Step 2.
- Chapter 3: How the web works Whole chapter Wrote out the L5 interview answer in full and added a table of common problems in a request trace and how to repair them.
- Chapter 4: Python readiness and development tools Whole chapter Removed repeated explanations around uv and virtual environments, corrected what the readiness script prints, and tidied callout formatting.
- Chapter 5: Django’s role and our first architecture decision Whole chapter Corrected an interview example to use the event status field the model actually has, and added a table of common problems in the design documents.
- Chapter 6: Creating the project and understanding its files Whole chapter Put the tables in order and noted that tzdata is installed on Windows only.
- Chapter 7: Django apps and application boundaries Whole chapter The registrations app is now created in Chapter 20, with its first model; its pages still arrive in Chapter 31. Updated the boundary table, decision record, Figure 7.2, and answers to match, and aligned the custom user wording with Chapter 17.
- Chapter 9: URLs and routing Whole chapter Stated the decision about where the home page lives, as Chapter 7 promised.
- Chapter 10: Function-based views and request/response objects Whole chapter Made the shell labels consistent with the rest of the book.
- Chapter 11: Templates, context, and escaping Whole chapter Made the shell labels consistent with the rest of the book.
- Chapter 12: Template inheritance, includes, and partials Whole chapter Corrected the chapters in which the accounts and registrations pages arrive, and separated two notes that appeared back to back.
- Chapter 13: Static files and CSS fundamentals Whole chapter Event cover uploads now point to Chapter 42, and an example in the L4 answer uses the right app folder.
- Chapter 14: Tailwind, daisyUI, and Otahque’s design system Whole chapter Explained the slightly narrower reading column that Tailwind’s scale gives.
- Chapter 15: Relational databases and our first ERD Whole chapter A member profile is now described as Chapter 27’s decision, topics are shown but not built in Chapter 20, and the key terms have their heading.
- Chapter 15: Relational databases and our first ERD Whole chapter The note on topics now points to Chapter 20’s optional lab.
- Chapter 16: Django models and field choices Whole chapter Aligned the custom user model wording with Chapter 17 and added the key terms heading.
- Chapter 17: Choosing and creating our user model Whole chapter Added a short step that records in the ERD which model implements a member, and pointed the profile question to Chapter 27.
- Chapter 18: Migrations and schema evolution Whole chapter Gave the L5 code proof its own PowerShell listing, corrected a chapter reference, and added the key terms heading.
- Chapter 19: ORM fundamentals Whole chapter Corrected two chapter references and a table’s widths, and added the key terms heading.
- Chapter 20: Relationships between models Whole chapter Registrations are now described as registration history, not attendance; the chapter says that the new app carries out Chapter 7’s plan; and the key terms have their heading.
- Chapter 20: Relationships between models Whole chapter Added an optional lab, Step 9, that builds event topics with a many-to-many field in a copy of the project: the link table Django creates, adding and removing links, filters in both directions, prefetch_related(), and why a many-to-many field needs no on_delete.
- Chapter 21: Validation, constraints, and data integrity Whole chapter Added Chapter 21: validation and database constraints, what full_clean() runs and why save() does not, CheckConstraint and conditional UniqueConstraint, finding and fixing rows before a constraint migration, why only the database can stop a double registration, the decision to store email addresses in lower case, tests written first, a verification checklist, quiz and challenge, and interview questions.
- Chapter 22: QuerySets, managers, and query composition Whole chapter Added Chapter 22: managers and custom QuerySets, moving the published rule into one named method that both public views use, Q and F expressions, choosing an order, counting with annotate() and aggregate(), Prefetch for related rows, tests written first, a verification checklist, quiz and challenge, and interview questions.
- Chapter 20: Relationships between models Whole chapter Added Chapter 20: relationship fields, on_delete rules, forward and reverse access with related_name, filters across relationships, a new registrations app with Registration and OrganizerAssignment models and their migrations, tests written first, counting and removing a query per row with select_related() and prefetch_related(), a verification checklist, quiz and challenge, and interview questions.
- Chapter 19: ORM fundamentals Whole chapter Added Chapter 19: the ORM, managers and QuerySets, get() and filter(), field lookups, when queries run, changing and deleting rows in the Django shell, event pages that read published events from the database and show each event's local time, tests that hide drafts and count queries, a verification checklist, quiz and challenge, and interview questions.
- Chapter 15: Relational databases and our first ERD Section 15.3 After code review, the ERD no longer claims the structure ties cancelled_at to a cancelled status: that rule now waits for a CHECK constraint in Chapter 21. A new open question asks whether email addresses that differ only in letter case belong to one member.
- Chapter 18: Migrations and schema evolution Whole chapter Added Chapter 18: what migrations are, reading and previewing the first migrations, applying them, the first database tests and a migration guard test, creating a superuser, a lab that adds a unique field to a table with rows through a reversible data migration, a verification checklist, quiz and challenge, and interview questions.
- Chapter 16: Django models and field choices Section 16.6 Corrected the L5 answer to match current Django guidance: a new project can set up a custom user model before its first migration.
- Chapter 17: Choosing and creating our user model Whole chapter Added Chapter 17: authentication and the user model, why AUTH_USER_MODEL is chosen before the first migration, three ways to define a user, an email sign-in user model and manager built test-first, how Django stores passwords, two decision records, a verification checklist, quiz and challenge, and interview questions.
- Chapter 15: Relational databases and our first ERD Section 15.3 The ERD's out-of-scope list now notes that an online event records Virtual as its location.
- Chapter 16: Django models and field choices Section 16.1 Added the opening of Chapter 16: what a Django model is, the field choices it makes for an event, and what stays for later chapters.
- Chapter 16: Django models and field choices Sections 16.2–16.6 Completed Chapter 16: field types and options, blank and null, time zones, a fixed list of statuses, the Event model built test-first, a verification checklist, quiz and challenge, and interview questions.
- Before you begin Noted that Chapter 14 adds Node.js and npm, at exact versions, for the stylesheet's build tools.
- Chapter 14: Tailwind, daisyUI, and Otahque’s design system Whole chapter Added Chapter 14: Node.js and npm, a Tailwind and daisyUI build with exact versions, an Otahque theme with measured colours, utility and component classes, tests written first, and interview questions.
- Chapter 14: Tailwind, daisyUI, and Otahque’s design system Section 14.6 Redrew Figure 14.5 as a decision with Yes and No branches, so the three places a value can live read as alternatives, not steps.
- Chapter 15: Relational databases and our first ERD Section 15.1 Added the opening of Chapter 15: why Otahque needs a relational database, what an entity-relationship diagram is, what the chapter builds, and what it leaves to later chapters.
- Chapter 15: Relational databases and our first ERD Section 15.2 Added What You Need to Know: tables, primary and foreign keys, crow's foot notation, registration as a record of its own, what the database can and cannot refuse, and Python's sqlite3 module, with two diagrams.
- Chapter 15: Relational databases and our first ERD Sections 15.3–15.6 Completed Chapter 15: the first ERD built from the Chapter 2 rules, a test-first SQLite lab that shows each refusal, a verification checklist, quiz and challenge, and interview questions.
- Chapter 13: Static files and CSS fundamentals Whole chapter Added Chapter 13: static files, a first shared stylesheet, CSS rules, the box model and the cascade, visible keyboard focus, tests written first, and interview questions.
- Chapter 12: Template inheritance, includes, and partials Whole chapter Added Chapter 12: template inheritance, includes, partials, a custom filter that keeps titles escaped, tests written first, and interview questions.
- Chapter 8: Settings, environments, dependencies, and Git Whole chapter Corrected the advice on leaked secret keys: an exposed key should not stay active as a fallback (interview answer L5, Figure 8.7, and the lost-laptop note). .env.example no longer tells readers to copy it, and its key is empty so a copy cannot run on a key printed in the book. Corrected the recovery when Git has staged too much and what git rm does without --cached, explained where the .env search looks, matched the commit routine to later chapters, and added links to the Django documentation.
- Chapter 9: URLs and routing Whole chapter Reworked the chapter so the tests come first: you now watch them fail, learn to read the result, and then make them pass. Added a figure of the two URL files, printed test output, exact verification commands, and a section on the test client. Corrected what a missing include looks like, and what the interview answer says about route order. Interview answers now have their own code proofs.
- Chapter 9: URLs and routing Sections 9.2–9.4 Made the chapter?s documentation and local development addresses clickable in a new tab.
- Chapter 9: URLs and routing Whole chapter Completed the draft: URL patterns, app inclusion, named routes, two placeholder pages, tests, a quiz, and interview questions.
- Chapter 9: URLs and routing Section 9.1 Added the opening to Chapter 9, introducing routing and the first Otahque pages.
- Chapter 10: Function-based views and request/response objects Whole chapter Added a hands-on look at request and response objects, printed test output including the first failing run, and exact verification commands. Corrected the error a view shows when it returns a string. Interview answers now have their own code proofs, and the Git steps let you read staged changes before committing.
- Chapter 10: Function-based views and request/response objects Whole chapter Added Chapter 10: requests, responses, a fictional event detail, tests, and interview questions.
- Chapter 11: Templates, context, and escaping Whole chapter Added printed test output including the first failing run, commands to create the template folder, exact verification commands, and an explanation of the DOM and of misspelled template variables. Interview answers now have their own code proofs, and the Git steps let you read staged changes before committing.
- Chapter 11: Templates, context, and escaping Whole chapter Added Chapter 11: templates, context, sample pages, escaping, tests, and interview questions.
- Chapter 3: How the web works Sections 3.3, and 3.6 Clarified the Network panel exercise so readers describe the requests they actually see, and tightened the duplicate-registration interview answer.
- Before you begin Whole chapter Aligned the reading guide, prerequisites, and setup directions with the six-part chapters. Reading progress restarts for this structure; older section progress is retained separately in your browser.
- Before you begin Described the six-part chapter cycle and the coloured callouts, after the earlier Otahque course.
- Before you begin Described the interview questions that now end each chapter.
- Before you begin Redrew Figure F.1, the learning path, in the new illustration style with numbered milestones.
- Chapter 1: Otahque: the problem and the people Whole chapter Reviewed the six-part revision: clarified explanations and references, improved checkpoint guidance, and aligned the chapter with its updated plan. Older numbered-section bookmarks may identify different topics; use the named topics in the chapter contents.
- Chapter 1: Otahque: the problem and the people Whole chapter Reorganized into six parts: Why This Matters, What You Need to Know, How We Build It, Verify Your Work, Checkpoint (quiz, mini-challenge, What We Learned), and Test Your Knowledge, with callouts, a verification table, and fuller interview answers with flow figures.
- Chapter 1: Otahque: the problem and the people Section 1.5 Added five interview questions, L1 (junior) to L5 (lead), with model answers, at the end of Section 1.5.
- Chapter 1: Otahque: the problem and the people Sections 1.1–1.4 Redrew Figures 1.1 to 1.5 in the new illustration style: colours that mark the kind of part, icons, and numbered steps where order matters.
- Chapter 2: Business requirements, product scope, and user stories Whole chapter Reviewed the six-part revision: clarified explanations and references, improved checkpoint guidance, and aligned the chapter with its updated plan. Older numbered-section bookmarks may identify different topics; use the named topics in the chapter contents.
- Chapter 2: Business requirements, product scope, and user stories Whole chapter Reorganized into six parts: Why This Matters, What You Need to Know, How We Build It, Verify Your Work, Checkpoint (quiz, mini-challenge, What We Learned), and Test Your Knowledge, with callouts, a verification table, and fuller interview answers with flow figures.
- Chapter 2: Business requirements, product scope, and user stories Section 2.6 Added five interview questions, L1 (junior) to L5 (lead), with model answers, at the end of Section 2.6.
- Chapter 2: Business requirements, product scope, and user stories Sections 2.1–2.6 Redrew Figures 2.1 to 2.9 in the new illustration style: colours that mark the kind of part, icons, and numbered steps where order matters.
- Chapter 3: How the web works Whole chapter Reviewed the six-part revision: clarified explanations and references, improved checkpoint guidance, and aligned the chapter with its updated plan. Older numbered-section bookmarks may identify different topics; use the named topics in the chapter contents.
- Chapter 3: How the web works Whole chapter Reorganized into six parts: Why This Matters, What You Need to Know, How We Build It, Verify Your Work, Checkpoint (quiz, mini-challenge, What We Learned), and Test Your Knowledge, with callouts, a verification table, and fuller interview answers with flow figures.
- Chapter 3: How the web works Section 3.5 Added five interview questions, L1 (junior) to L5 (lead), with model answers, at the end of Section 3.5.
- Chapter 3: How the web works Sections 3.1–3.5 Redrew Figures 3.1 to 3.8 in the new illustration style: colours that mark the kind of part, icons, and numbered steps where order matters.
- Chapter 4: Python readiness and development tools Whole chapter Reviewed the six-part revision: clarified explanations and references, improved checkpoint guidance, and aligned the chapter with its updated plan. Older numbered-section bookmarks may identify different topics; use the named topics in the chapter contents.
- Chapter 4: Python readiness and development tools Whole chapter Reorganized into six parts: Why This Matters, What You Need to Know, How We Build It, Verify Your Work, Checkpoint (quiz, mini-challenge, What We Learned), and Test Your Knowledge, with callouts, a verification table, and fuller interview answers with flow figures.
- Chapter 4: Python readiness and development tools Section 4.6 Added five interview questions, L1 (junior) to L5 (lead), with model answers, at the end of Section 4.6.
- Chapter 4: Python readiness and development tools Sections 4.1–4.6 Redrew Figures 4.1 to 4.6 in the new illustration style: colours that mark the kind of part, icons, and numbered steps where order matters.
- Chapter 5: Django’s role and our first architecture decision Whole chapter Reviewed the six-part revision: clarified explanations and references, improved checkpoint guidance, and aligned the chapter with its updated plan. Older numbered-section bookmarks may identify different topics; use the named topics in the chapter contents.
- Chapter 5: Django’s role and our first architecture decision Whole chapter Reorganized into six parts: Why This Matters, What You Need to Know, How We Build It, Verify Your Work, Checkpoint (quiz, mini-challenge, What We Learned), and Test Your Knowledge, with callouts, a verification table, and fuller interview answers with flow figures.
- Chapter 5: Django’s role and our first architecture decision Section 5.5 Added five interview questions, L1 (junior) to L5 (lead), with model answers, at the end of Section 5.5.
- Chapter 5: Django’s role and our first architecture decision Sections 5.1, 5.2, 5.3, and 5.5 Redrew Figures 5.1 to 5.4 in the new illustration style: colours that mark the kind of part, icons, and numbered steps where order matters.
- Chapter 6: Creating the project and understanding its files Whole chapter Reviewed the six-part revision: clarified explanations and references, improved checkpoint guidance, and aligned the chapter with its updated plan. Older numbered-section bookmarks may identify different topics; use the named topics in the chapter contents.
- Chapter 6: Creating the project and understanding its files Whole chapter Reorganized into six parts: Why This Matters, What You Need to Know, How We Build It, Verify Your Work, Checkpoint (quiz, mini-challenge, What We Learned), and Test Your Knowledge, with callouts, a verification table, and fuller interview answers with flow figures.
- Chapter 6: Creating the project and understanding its files Section 6.5 Added five interview questions, L1 (junior) to L5 (lead), with model answers, at the end of Section 6.5.
- Chapter 6: Creating the project and understanding its files Sections 6.1, 6.3, and 6.4 Redrew Figures 6.1 to 6.3 in the new illustration style: colours that mark the kind of part, icons, and numbered steps where order matters.
- Chapter 7: Django apps and application boundaries Whole chapter Corrected details: table names follow the app label by default, the opening explains that moving a model needs a planned migration, a quiz answer no longer says apps must never refer back, and Figure 7.5 shows that model classes are available before the ready() step.
- Chapter 7: Django apps and application boundaries Whole chapter Reviewed the six-part revision: clarified explanations and references, improved checkpoint guidance, and aligned the chapter with its updated plan. Older numbered-section bookmarks may identify different topics; use the named topics in the chapter contents.
- Chapter 7: Django apps and application boundaries Whole chapter Reorganized into six parts: Why This Matters, What You Need to Know, How We Build It, Verify Your Work, Checkpoint (quiz, mini-challenge, What We Learned), and Test Your Knowledge, with callouts, a verification table, and fuller interview answers with flow figures.
- Chapter 7: Django apps and application boundaries Section 7.5 Added five interview questions, L1 (junior) to L5 (lead), with model answers, at the end of Section 7.5.
- Chapter 7: Django apps and application boundaries Sections 7.1, 7.2, and 7.4 Redrew Figures 7.1 to 7.3 in the new illustration style: colours that mark the kind of part, icons, and numbered steps where order matters.
- Chapter 8: Settings, environments, dependencies, and Git Whole chapter The settings now read .env themselves through the python-decouple library, so Django commands no longer need --env-file. Updated the steps, the lock (six packages), Figure 8.2, the problem table, the mini-challenge, and the interview answers to match.
- Chapter 8: Settings, environments, dependencies, and Git Whole chapter Completed the chapter: a verification checklist, a quiz, a mini-challenge that rebuilds the project from Git in a second folder, key terms, and five interview questions from junior to lead with worked answers and four flow figures.
- Chapter 8: Settings, environments, dependencies, and Git Whole chapter Clarified that uv run brings the lock and the environment up to date before each command, and that uv lock --check reports a lock that would change; Figure 8.2 updated to match. Simplified a settings explanation and a table heading.
- Chapter 8: Settings, environments, dependencies, and Git Whole chapter Added How We Build It: make the project a uv project with a lock file, read the secret key and debug mode from the environment, create a local .env, write the ignore rules, and make the first Git commit, with a table of problems and safe recoveries.
- Chapter 8: Settings, environments, dependencies, and Git Whole chapter First draft of the opening and What You Need to Know: environments, how Django loads settings, the three settings that must differ, environment variables and .env files, declared and locked dependencies, and Git’s three areas, with three figures.
- Before you begin Added the milestones table (Table F.2) and said that no HTML, command-line, or database experience is assumed.
- Chapter 4: Python readiness and development tools Sections 4.1–4.4 Added Further practice links to the matching parts of the official Python tutorial.
- Chapter 5: Django’s role and our first architecture decision Sections 5.2–5.5 Corrected and clarified the request trace, template escaping, the design sketch, and the option comparison; enlarged labels in Figures 5.2 to 5.4.
- Chapter 6: Creating the project and understanding its files Sections 6.1, 6.3, 6.4, and 6.5 Added a fresh comparison copy for recovery (6.5), a note on the Windows stop message (6.4), and clearer setup notes (6.1); enlarged Figure 6.2.
- Chapter 6: Creating the project and understanding its files Sections 6.2–6.5 First published on the website: Sections 6.2 to 6.5, completing the chapter.
- Chapter 6: Creating the project and understanding its files Section 6.1 First published on the website: Section 6.1.
- Chapter 7: Django apps and application boundaries Sections 7.2–7.5 First published on the website: Sections 7.2 to 7.5, completing the chapter.
- Chapter 7: Django apps and application boundaries Section 7.1 Clarified the difference between an app and an installed app, what listing an app does and does not configure, and which apps have migrations.
- Chapter 7: Django apps and application boundaries Section 7.1 First published on the website: Section 7.1.
- Before you begin Described the In practice segments and updated the tools and versions used from Chapter 4.
- Chapter 1: Otahque: the problem and the people Whole chapter Added In practice segments that connect each idea to a real project.
- Chapter 1: Otahque: the problem and the people Sections 1.2–1.3 Redrew Figure 1.4 and removed the title from inside Figure 1.3.
- Chapter 2: Business requirements, product scope, and user stories Whole chapter Added In practice segments that connect each idea to a real project.
- Chapter 2: Business requirements, product scope, and user stories Sections 2.1, 2.2, and 2.6 Corrected the definition of a member (2.1), fixed overlapping labels in Figure 2.4, and removed an authoring note from the end of 2.6.
- Chapter 3: How the web works Whole chapter Added In practice segments and marked code, commands, and addresses in the text.
- Chapter 3: How the web works Sections 3.1, 3.2, and 3.5 Redrew Figures 3.4 and 3.8 and fixed overlapping labels in Figures 3.2 and 3.5.
- Chapter 4: Python readiness and development tools Section 4.5 Explained the Windows terminal and shell choices more fully.
- Chapter 4: Python readiness and development tools Whole chapter Added In practice segments, marked code in the text, and redrew Figures 4.2, 4.4, 4.5, and 4.6.
- Chapter 4: Python readiness and development tools Whole chapter Revised the setup to use uv 0.13.5 with Python 3.14.9.
- Chapter 5: Django’s role and our first architecture decision Sections 5.1, and 5.5 Listed Django’s main features as bullets (5.1) and added what the architecture decision means for you (5.5).
- Chapter 5: Django’s role and our first architecture decision Sections 5.2–5.5 First published on the website: Sections 5.2 to 5.5, completing the chapter.
- Chapter 5: Django’s role and our first architecture decision Section 5.1 First published on the website: Section 5.1.
- Chapter 4: Python readiness and development tools Sections 4.2–4.6 First published on the website: Sections 4.2 to 4.6, completing the chapter.
- Before you begin Explained that answers on the website stay folded until you select Show answer.
- Chapter 3: How the web works Whole chapter First published on the website as a complete five-section draft.
- Chapter 4: Python readiness and development tools Section 4.1 First published on the website: Section 4.1.
- Before you begin First published: Preface, How to use this book, and Book structure.
- Chapter 1: Otahque: the problem and the people Whole chapter Revised after review: clearer outcomes, model answers, a key-terms table, captions, and alt text.
- Chapter 2: Business requirements, product scope, and user stories Whole chapter Completed the chapter (2.3–2.6) and revised it after review, with redrawn figures, a timing figure, and new tables.
- Chapter 1: Otahque: the problem and the people Whole chapter First published on the website.
- Chapter 2: Business requirements, product scope, and user stories Sections 2.1–2.2 First published on the website: Sections 2.1 and 2.2.