Pular para o conteúdo principal
Academind
Todos os cursos

Curso do Academind Pro

Python Django - The Practical Guide

Learn how to build web applications and websites with Python and the Django framework

  • 16 seções · 253 aulas
  • 23 h no total
Python Django - The Practical Guide

Sobre este curso

You already know Python, but turning that knowledge into a real website can feel like hitting a wall: too many moving parts, too much boilerplate, and it’s unclear what “the right way” looks like. You want to build something dynamic—not just scripts—and you don’t want to stitch everything together from scratch.

In this course, you’ll use Django to get a clear, step-by-step path from an empty folder to a working web app. You’ll see how the pieces fit together as you add features incrementally, with explanations that connect what you write to what the framework is doing for you.

By the end, you’ll be able to create and run your own Django projects confidently, build pages that display and manage data, accept user input, and ship a working site to a production environment. You’ll also have a complete blog website you can reference when starting your next project.

O que você vai aprender

You’ll work through Django’s full request-to-response workflow, then extend it with data models, forms, admin tooling, and deployment patterns used in real projects.

  1. 01

    Build Django projects

    Create Django projects from scratch, run them locally, and add new features step by step so you always know where code belongs and how the app is structured.

  2. 02

    Route requests to views

    Set up URLs and implement views that handle requests and return responses, so you can control what happens for each page and endpoint in your application.

  3. 03

    Render pages with templates

    Produce dynamic HTML using Django templates and correctly include static files like CSS and images, so your pages are both data-driven and properly styled.

  4. 04

    Model and query data

    Define models, create relationships (one-to-many, one-to-one, many-to-many), and query data with Django’s model solution to power real data management features.

  5. 05

    Handle input and sessions

    Accept and validate user input with forms (manually and with Django’s built-in form support) and use sessions to keep state across requests when your app needs it.

  6. 06

    Ship with advanced features

    Decide when to use class-based views, add administration panels, handle file uploads, and deploy with practical guidance—including options for serving static files and user uploads.

Pré-requisitos

  • Basic Python knowledge is required.

  • Basic web development knowledge (HTML/CSS) is required.

  • No prior Django experience is required.

Para quem é este curso

  • Python developers

    You’re comfortable writing Python and want your next step to be building real websites. This course gives you a structured way to move into web development without guessing how everything connects.

  • JavaScript developers

    You’ve built for the web before, but you want to explore Python for web development. This course helps you translate your web instincts into a Django-based workflow quickly.

  • Aspiring web builders

    You’re motivated to build websites with Python and want a guided path that results in a finished, working site you can learn from and build on after the course.

Conteúdo do curso

Confira a estrutura e o ritmo deste curso antes de começar.

  1. 1Getting Started7 aulas · 18 min
    1. 01Welcome to the Course!2:05 min
    2. 02What is Django?4:58 min
    3. 03The Course Prerequisites1:54 min
    4. 04What's Inside the Course?3:14 min
    5. 05Getting the Most out of the Course3:05 min
    6. 06Choose Your Course Path!2:41 min
    7. 07The Academind Pro Referral Program0:00 min
  2. 2Course Setup10 aulas · 39 min
    1. 01Module Introduction1:05 min
    2. 02Installing Python & Django6:25 min
    3. 03Creating a Django Project2:33 min
    4. 04Installing an IDE7:54 min
    5. 05Analyzing the Created Project4:48 min
    6. 06Starting a Development Server5:05 min
    7. 07Django Apps8:19 min
    8. 08Analyzing the Created Project2:27 min
    9. 09More Advanced Setup Steps0:00 min
    10. 10Useful Resources & Links0:00 min
  3. 3URLs & Views14 aulas · 1 h e 30 min
    1. 01Module Introduction2:45 min
    2. 02Creating a New Project5:34 min
    3. 03What are URLs & Views?5:42 min
    4. 04Creating a First View & URL13:27 min
    5. 05Adding More Views & URLs3:11 min
    6. 06Dynamic Path Segments & Captured Values9:35 min
    7. 07Path Converters5:16 min
    8. 08Adding More Dynamic View Logic5:20 min
    9. 09Redirects8:48 min
    10. 10The Reverse Function & Named URLs10:31 min
    11. 11Returning HTML5:48 min
    12. 12Practicing URLs, Views & Dynamic View Logic9:37 min
    13. 13Summary4:43 min
    14. 14Useful Resources & Links0:00 min
  4. 4Templates & Static Files21 aulas · 2 h e 1 min
    1. 01Module Introduction3:55 min
    2. 02Adding & Registering Templates14:55 min
    3. 03Rendering Templates4:16 min
    4. 04Template Language & Variable Interpolation5:38 min
    5. 05Exercise Solution1:56 min
    6. 06Filters4:19 min
    7. 07The Django Visual Studio Code Extension2:29 min
    8. 08Tags & the "for" Tag8:02 min
    9. 09The URL Tag for Dynamic URLs6:10 min
    10. 10The "if" Tag for Conditional Content5:16 min
    11. 11Template Inheritance9:38 min
    12. 12Exercise Solution1:31 min
    13. 13Including Partial Template Snippets9:45 min
    14. 14More on the Django Template Language (DTL)0:00 min
    15. 15404 Templates7:08 min
    16. 16Adding Static Files9:13 min
    17. 17Adding Global Static Files6:24 min
    18. 18Adding CSS Styling15:55 min
    19. 19Building Static URLs Dynamically0:00 min
    20. 20Summary4:48 min
    21. 21Useful Resources & Links0:00 min
  5. 5Course Project: Building a Blog - The Basics15 aulas · 1 h e 35 min
    1. 01Module Introduction1:13 min
    2. 02Setting Up the Starting Project3:45 min
    3. 03Planning the Project4:26 min
    4. 04Adding URLs & Views11:16 min
    5. 05Adding First Templates8:10 min
    6. 06Template Content & Static Files16:11 min
    7. 07Adding Images as Static Files2:58 min
    8. 08Adding the "All Posts" Page & Style10:32 min
    9. 09Linking the Pages4:16 min
    10. 10Adding the "Single Post" Page5:39 min
    11. 11Adding Dummy Data to the "Views" File4:09 min
    12. 12Special Template Features & Syntax11:26 min
    13. 13Adding a Single Post Page8:44 min
    14. 14Adding a 404 Page1:57 min
    15. 15Useful Resources & Links0:00 min
  6. 6Data & Models27 aulas · 2 h e 20 min
    1. 01Module Introduction2:55 min
    2. 02Different Kinds of Data6:56 min
    3. 03Understanding Database Options6:15 min
    4. 04Understanding SQL6:38 min
    5. 05Django Models1:02 min
    6. 06Creating a Django Model with Fields9:44 min
    7. 07Migrations6:58 min
    8. 08Inserting Data4:35 min
    9. 09Getting all Entries1:52 min
    10. 10Updating Models & Migrations12:17 min
    11. 11Blank vs Null2:42 min
    12. 12Updating Data5:50 min
    13. 13Deleting Data1:17 min
    14. 14Create Instead of Save3:07 min
    15. 15Querying & Filtering Data7:43 min
    16. 16"or" Conditions4:02 min
    17. 17Query Performance5:43 min
    18. 18Bulk Operations0:00 min
    19. 19Preparing Templates7:10 min
    20. 20Rendering Queried Data in the Template2:59 min
    21. 21Redering the Details Page9:38 min
    22. 22Model URLs4:41 min
    23. 23Adding a Slugfield & Overwriting Save9:04 min
    24. 24Using the Slug & Updating Field Options6:05 min
    25. 25Aggregation & Ordering7:13 min
    26. 26Summary3:29 min
    27. 27Useful Resources & Links0:00 min
  7. 7Admin7 aulas · 26 min
    1. 01Module Introduction2:14 min
    2. 02Logging Data Into the Admin Panel5:28 min
    3. 03Adding Models to the Admin Area3:32 min
    4. 04Configuring Model Fields3:03 min
    5. 05Configuring the Admin Settings6:28 min
    6. 06More Config Options5:04 min
    7. 07Useful Resources & Links0:00 min
  8. 8Relationships15 aulas · 1 h e 6 min
    1. 01Module Introduction1:52 min
    2. 02Understanding Relationship Types3:04 min
    3. 03Adding a one-to-many Relation & Migrations9:02 min
    4. 04Working with Relations in Python Code6:29 min
    5. 05Cross Model Queries8:24 min
    6. 06Managing Relations in Admin5:06 min
    7. 07Adding a one-to-one Relation6:42 min
    8. 08One-to-one Python Code4:54 min
    9. 09One-to-one & Admin Config5:23 min
    10. 10Setting-up many-to-many4:44 min
    11. 11Using many-to-many in Python5:18 min
    12. 12Many-to-many in Admin2:20 min
    13. 13Circular Relations & Lazy Relations0:00 min
    14. 14Summary2:37 min
    15. 15Useful Resources & Links0:00 min
  9. 9Course Project - Building a Blog: Data & Models14 aulas · 56 min
    1. 01Module Introduction1:57 min
    2. 02Planning the Data Models4:03 min
    3. 03Adding a Post Model7:36 min
    4. 04Author Model & one-to-many3:06 min
    5. 05Tag Model many-to-many1:22 min
    6. 06Registering Models for Admin1:15 min
    7. 07Migrations & Admin Login3:13 min
    8. 08Adding Data via Admin6:02 min
    9. 09Configuring the Admin Panel5:36 min
    10. 10Fetching Posts for Starting Page6:37 min
    11. 11All Post & Single Post Pages4:50 min
    12. 12Using Author & Tags Data8:34 min
    13. 13Summary1:40 min
    14. 14Useful Resources & Links0:00 min
  10. 10Forms20 aulas · 2 h e 3 min
    1. 01Module Introduction1:53 min
    2. 02Starting Setup4:52 min
    3. 03Adding a Dummy Form4:40 min
    4. 04Get & Post Requests9:59 min
    5. 05CSRF Protection5:52 min
    6. 06Handling Form Submission & Extracting Data9:50 min
    7. 07Manual Form Validation & the Problems with "that"6:09 min
    8. 08Using the Django Form Class11:04 min
    9. 09Validation with Django Forms4:12 min
    10. 10Customizing the Form Controls5:00 min
    11. 11Customizing the Rendered HTML5:05 min
    12. 12Adding Styling9:08 min
    13. 13Adding More Form Controls7:37 min
    14. 14Storing Form Data in a Database8:37 min
    15. 15Introducing Modelforms6:39 min
    16. 16Configuring the Modelform3:47 min
    17. 17Saving Data with a Modelform4:28 min
    18. 18Class Based Views8:41 min
    19. 19Summary5:53 min
    20. 20Useful Resources & Links0:00 min
  11. 11Class Views11 aulas · 48 min
    1. 01Module Introduction1:07 min
    2. 02Adding Templates4:21 min
    3. 03TemplateView7:56 min
    4. 04Using the TemplateView5:03 min
    5. 05Showing a Detail Template5:06 min
    6. 06The ListView6:55 min
    7. 07DetailView3:48 min
    8. 08When to Use Which View2:22 min
    9. 09FormView6:42 min
    10. 10CreateView4:47 min
    11. 11Useful Resources & Links0:00 min
  12. 12File Uploads12 aulas · 47 min
    1. 01Module Introduction1:21 min
    2. 02Starting Setup1:24 min
    3. 03Making the File Upload Work7:30 min
    4. 04Storing Uploaded Files Naive Approach4:39 min
    5. 05Adding a Form with a Filefield4:38 min
    6. 06Using Models for File Storage8:44 min
    7. 07Using an Imagefield2:19 min
    8. 08Using a CreateView2:34 min
    9. 09Working with the File Field5:10 min
    10. 10Serving Uploaded Files6:50 min
    11. 11Summary1:53 min
    12. 12Useful Resources & Links0:00 min
  13. 13Sessions11 aulas · 28 min
    1. 01Module Introduction0:38 min
    2. 02Problem Description2:01 min
    3. 03What are Sessions?3:41 min
    4. 04Enabling & Configuring Sessions2:15 min
    5. 05Adding a New View4:31 min
    6. 06Storing Data in Sessions4:03 min
    7. 07Which Kind of Data Should be Stored2:33 min
    8. 08Using Session Data5:33 min
    9. 09Safely Accessing Session Data1:12 min
    10. 10Summary1:32 min
    11. 11Useful Resources & Links0:00 min
  14. 14Course Project: Building a Blog - Forms, Files & Sessions17 aulas · 1 h e 57 min
    1. 01Module Introduction2:05 min
    2. 02Adding an Imagefield to the Post Model6:31 min
    3. 03Serving Uploaded Files6:23 min
    4. 04Converting Views to Class Based14:03 min
    5. 05Adding a Comment Model5:15 min
    6. 06Adding a Comment Form6:01 min
    7. 07Styling the Comment Form7:15 min
    8. 08Handling Comment Form Submission14:06 min
    9. 09Comment Form Validation Styles9:39 min
    10. 10Outputting Comments5:03 min
    11. 11Styling the Comments3:13 min
    12. 12Comment Admin3:44 min
    13. 13Read Later Starting Setup7:09 min
    14. 14Managing Read Later via Session13:52 min
    15. 15Read Later Page & Styling6:30 min
    16. 16Finishing the Read Later Feature6:21 min
    17. 17Useful Resources & Links0:00 min
  15. 15Deployment20 aulas · 2 h e 1 min
    1. 01Module Introduction1:29 min
    2. 02Deployment Considerations5:00 min
    3. 03Which Database3:52 min
    4. 04Django & Web Servers4:33 min
    5. 05Serving Static Files5:43 min
    6. 06Choosing a Hosting Provider2:42 min
    7. 07Getting Started & Revisiting Settings7:00 min
    8. 08Collecting Static Files7:35 min
    9. 09Serving Static Files1:52 min
    10. 10A Note About Migrations1:13 min
    11. 11Locking in Dependencies5:48 min
    12. 12Using Environment Variables5:03 min
    13. 13Deploying with Elastic Beanstalk10:42 min
    14. 14SSL & Custom Domains2:57 min
    15. 15Connecting PostgreSQL18:58 min
    16. 16Serving Static Files Separately8:51 min
    17. 17Serving Static Files via S317:38 min
    18. 18Moving File Uploads to S38:26 min
    19. 19Summary1:28 min
    20. 20Useful Resources & Links0:00 min
  16. 16Optional: Django Summary & Quick Introduction32 aulas · 4 h e 5 min
    1. 01Module Introduction3:07 min
    2. 02What & Why?6:00 min
    3. 03Setup & Analyzing the Project Folder7:03 min
    4. 04Working with Apps4:49 min
    5. 05URLs & Views12:19 min
    6. 06Getting Started with Templates6:54 min
    7. 07Static Files & First Steps with the Django Template Language8:25 min
    8. 08Key Django Template Language Features & Tags9:39 min
    9. 09Using What we Learned8:53 min
    10. 10Adding a Detail Page10:44 min
    11. 11Dynamic Paths8:12 min
    12. 12Dynamic URLs in Templates6:49 min
    13. 13Using Template Inheritance12:45 min
    14. 14Includes4:59 min
    15. 15What is Data?3:43 min
    16. 16Getting Started with Models11:12 min
    17. 17Using the Admin Panel4:41 min
    18. 18Querying Data7:51 min
    19. 19Adding Image Upload11:38 min
    20. 20Serving & Displaying Images7:02 min
    21. 21Configuring the Admin Area8:26 min
    22. 22Setting one-to-many Relations9:51 min
    23. 23many-to-many Relations9:45 min
    24. 24More Meetup Fields & Outputting Related Data7:38 min
    25. 25Creating a Modelform8:21 min
    26. 26Handling Form Submission10:11 min
    27. 27More on Form Submission & Validation10:46 min
    28. 28From Modelform to Form9:17 min
    29. 29Polishing Organizer Email8:26 min
    30. 30Optimizing URLs3:59 min
    31. 31Wrap Up1:31 min
    32. 32Useful Resources & Links0:00 min

Pronto para começar?

Compre este curso no Academind Pro ou tenha todos os cursos com o All Access no Academind Infinite.

Black Friday: um ano de All Access por US$ 249 US$ 249 · só até Aproveite a oferta
  • Este curso no Academind Pro

    US$ 69pagamento único

    Impostos incluídos · Garantia de reembolso de 30 dias

    • Acesso vitalício a este curso
    • Todas as futuras atualizações deste curso
    • Materiais para download, código e um certificado
    Comprar Python Django
  • All Access no Academind Infinite

    US$ 25por mês

    ou US$ 249 US$ 249 por anoEconomize 17%

    • Todos os cursos, com todos os recursos
    • Cursos novos assim que saem
    • Seu tutor, com todos os recursos
    Assinar o All Access

O All Access também inclui todos os cursos do Academind Pro.

Academind Pro e Academind Infinite

Duas plataformas separadas, cada uma com seus próprios cursos e seu próprio login.

Academind Pro

Nossa plataforma de cursos original, em pro.academind.com. Sua assinatura do Pro e os cursos que você comprou lá continuam no Pro.

Entrar no Academind Pro

Academind Infinite

Nossa nova plataforma pensada para IA. Membros do Pro entram com a conta do Pro, e o Pro All Access inclui o Infinite: todos os cursos ficam liberados.

Entrar no Academind Infinite

Tinha uma conta no Pro ou comprou um curso no Pro?

Nem todo curso do Pro foi para o Infinite, só estes. Escolha o seu para vê-lo no Infinite.