A BEGINNER-FIRST DJANGO BOOK

Build a community.
Learn Django.

From the first requirement to a working community platform. Learn through Otahque, one idea, one example and one chapter at a time.

Start reading

2 chapters available / 75-chapter learning path

Otahque book illustration: Django from first principles to production, with a connected community on the cover.

THE LEARNING PATH

Contents

Read the available chapters and latest draft sections below. Draft chapters grow as new sections are added; planned chapters are not yet available.

  1. CHAPTER 01Otahque: the problem and the peopleRead chapter →
    Explore sections
  2. CHAPTER 02Business requirements, product scope, and user storiesRead draft →
    Explore sections
  3. CHAPTER 03How the web worksPlanned
  4. CHAPTER 04Python readiness and development toolsPlanned
  5. CHAPTER 05Django’s role and our first architecture decisionPlanned
  6. CHAPTER 06Creating the project and understanding its filesPlanned
  7. CHAPTER 07Django apps and application boundariesPlanned
  8. CHAPTER 08Settings, environments, dependencies, and GitPlanned
  9. CHAPTER 09URLs and routingPlanned
  10. CHAPTER 10Function-based views and request/response objectsPlanned
  11. CHAPTER 11Templates, context, and escapingPlanned
  12. CHAPTER 12Template inheritance, includes, and partialsPlanned
  13. CHAPTER 13Static files and CSS fundamentalsPlanned
  14. CHAPTER 14Tailwind, daisyUI, and Otahque’s design systemPlanned
  15. CHAPTER 15Relational databases and our first ERDPlanned
  16. CHAPTER 16Django models and field choicesPlanned
  17. CHAPTER 17Choosing and creating our user modelPlanned
  18. CHAPTER 18Migrations and schema evolutionPlanned
  19. CHAPTER 19ORM fundamentalsPlanned
  20. CHAPTER 20Relationships between modelsPlanned
  21. CHAPTER 21Validation, constraints, and data integrityPlanned
  22. CHAPTER 22QuerySets, managers, and query compositionPlanned
  23. CHAPTER 23Django admin fundamentalsPlanned
  24. CHAPTER 24Django formsPlanned
  25. CHAPTER 25ModelForms and the validation lifecyclePlanned
  26. CHAPTER 26Event creation, editing, and publicationPlanned
  27. CHAPTER 27Authentication and account workflowsPlanned
  28. CHAPTER 28Cookies, sessions, and messagesPlanned
  29. CHAPTER 29Password management and reset emailsPlanned
  30. CHAPTER 30Permissions, ownership, and rolesPlanned
  31. CHAPTER 31Event registration and cancellationPlanned
  32. CHAPTER 32Moving to PostgreSQLPlanned
  33. CHAPTER 33Transactions, concurrency, and the last available seatPlanned
  34. CHAPTER 34Testing fundamentals and first-release acceptancePlanned
  35. CHAPTER 35Class-based views and dispatchPlanned
  36. CHAPTER 36Generic display views and paginationPlanned
  37. CHAPTER 37Generic editing views and access mixinsPlanned
  38. CHAPTER 38Advanced admin and formsetsPlanned
  39. CHAPTER 39Middleware and context processorsPlanned
  40. CHAPTER 40Signals, application lifecycle, and system checksPlanned
  41. CHAPTER 41Management commands and data import/exportPlanned
  42. CHAPTER 42File uploads and storagePlanned
  43. CHAPTER 43Email delivery and templatesPlanned
  44. CHAPTER 44Background tasks, scheduling, and retriesPlanned
  45. CHAPTER 45HTMX and progressive enhancementPlanned
  46. CHAPTER 46Waitlists, check-in, and registration state transitionsPlanned
  47. CHAPTER 47API design and HTTP contractsPlanned
  48. CHAPTER 48DRF serializers and validationPlanned
  49. CHAPTER 49API views, generic views, viewsets, and routersPlanned
  50. CHAPTER 50API authentication and permissionsPlanned
  51. CHAPTER 51Filtering, pagination, throttling, and API documentationPlanned
  52. CHAPTER 52Webhooks and reliable external integrationsPlanned
  53. CHAPTER 53Async Django, ASGI, and sync/async boundariesPlanned
  54. CHAPTER 54Channels and real-time updatesPlanned
  55. CHAPTER 55Advanced ORM and database expressionsPlanned
  56. CHAPTER 56Search, indexes, and query plansPlanned
  57. CHAPTER 57Caching and application performancePlanned
  58. CHAPTER 58Advanced testing and failure scenariosPlanned
  59. CHAPTER 59Security review, threat modelling, and hardeningPlanned
  60. CHAPTER 60Preventing web and API attacksPlanned
  61. CHAPTER 61Accessibility, localization, timezones, and discoverabilityPlanned
  62. CHAPTER 62Production architecture and DockerPlanned
  63. CHAPTER 63Deployment, static/media delivery, and HTTPSPlanned
  64. CHAPTER 64CI/CD, safe migrations, and rollbackPlanned
  65. CHAPTER 65Logging, monitoring, backups, and recoveryPlanned
  66. CHAPTER 66Load testing, capacity planning, and scaling decisionsPlanned
  67. CHAPTER 67Multi-community requirements and tenancy alternativesPlanned
  68. CHAPTER 68Implementing and testing tenant isolationPlanned
  69. CHAPTER 69Billing, subscriptions, and entitlementsPlanned
  70. CHAPTER 70Volunteer management and organizer planningPlanned
  71. CHAPTER 71Teams, hackathon submissions, and judgingPlanned
  72. CHAPTER 72Job board, reusable content, and moderationPlanned
  73. CHAPTER 73Adding an AI feature safelyPlanned
  74. CHAPTER 74AI guardrails and adversarial testingPlanned
  75. CHAPTER 75Final product review, UI refinement, upgrades, and maintenancePlanned