Aller au contenu principal
Academind
Tous les cours

Cours Academind Pro

Python Django - The Practical Guide

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

  • 16 sections · 253 leçons
  • 23 h au total
Python Django - The Practical Guide

À propos de ce cours

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.

Ce que vous allez apprendre

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érequis

  • Basic Python knowledge is required.

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

  • No prior Django experience is required.

À qui s’adresse ce cours

  • 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.

Programme

Découvrez la structure et le rythme de ce cours avant de commencer.

  1. 1Getting Started7 leçons · 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 leçons · 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 leçons · 1 h et 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 leçons · 2 h et 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 leçons · 1 h et 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 leçons · 2 h et 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 leçons · 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 leçons · 1 h et 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 leçons · 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 leçons · 2 h et 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 leçons · 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 leçons · 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 leçons · 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 leçons · 1 h et 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 leçons · 2 h et 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 leçons · 4 h et 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

Prêt à commencer ?

Achetez ce cours sur Academind Pro, ou obtenez tous les cours avec All Access sur Academind Infinite.

Black Friday : un an d’All Access pour 249 $US 249 $US · seulement jusqu’au Profitez de l’offre
  • Ce cours sur Academind Pro

    69 $USpaiement unique

    TVA incluse · Satisfait ou remboursé pendant 30 jours

    • Accès à vie à ce cours
    • Toutes les futures mises à jour de ce cours
    • Ressources téléchargeables, code et un certificat
    Acheter Python Django
  • All Access sur Academind Infinite

    25 $USpar mois

    ou 249 $US 249 $US par anÉconomisez 17 %

    • Tous les cours, avec toutes leurs fonctionnalités
    • Les nouveaux cours dès leur sortie
    • Votre tuteur, avec toutes ses fonctionnalités
    Obtenir All Access

All Access inclut aussi tous les cours Academind Pro.

Academind Pro et Academind Infinite

Deux plateformes distinctes, chacune avec ses propres cours et sa propre connexion.

Academind Pro

Notre plateforme de cours d’origine, sur pro.academind.com. Votre abonnement Pro et les cours que vous y avez achetés restent sur Pro.

Se connecter à Academind Pro

Academind Infinite

Notre nouvelle plateforme pensée pour l’IA. Les membres Pro se connectent avec leur compte Pro, et l’offre Pro All Access inclut Infinite : tous les cours leur sont ouverts.

Se connecter à Academind Infinite

Vous aviez un compte Pro ou avez acheté un cours sur Pro ?

Tous les cours Pro ne sont pas passés sur Infinite, seulement ceux-ci. Choisissez le vôtre pour le voir sur Infinite.