Understand Django

Understand Django is a series of articles focused on learning the Django web framework to build web applications with Python.

The articles build on each other to increase your understanding of how to use Django. The series explains how Django works. If you’re new to Django, you can start from the beginning. The articles assume you have little or no prior knowledge of doing web development.

  1. From Browser To Django
  2. URLs Lead The Way
  3. Views On Views
  4. Templates For User Interfaces
  5. User Interaction With Forms
  6. Store Data With Models
  7. Administer All The Things
  8. Anatomy Of An Application
  9. User Authentication
  10. Middleware Do You Go?
  11. Serving Static Files
  12. Test Your Apps
  13. Deploy A Site Live
  14. Per-visitor Data With Sessions
  15. Making Sense Of Settings
  16. User File Use
  17. Command Your App
  18. Go Fast With Django
  19. Security And Django
  20. Debugging Tips And Techniques
  • #Python
  • #Django
  • #debugging

Debugging Tips And Techniques

Your Django app is up. You’ve got users. Your users are hitting bugs. How do you debug to fix the problems? That’s the focus of this Understand Django article.

  • #Python
  • #Django
  • #security

Security And Django

You want to protect your users' privacy, right? The goal is noble and users demand it, but how do you do it? In this Understand Django article, we’ll look at some areas that improve …

  • #Python
  • #Django
  • #performance
  • #caching

Go Fast With Django

How do you make your Django app fast? You measure what is slow, scale your system when necessary, and use a combination of fast database queries and strategic caching. In this Understand …

  • #Python
  • #Django
  • #commands

Command Your App

With this Understand Django article, you’ll learn about commands. Commands are the way to execute scripts that interact with your Django app. We’ll see built-in commands and how …

  • #Python
  • #Django
  • #files

User File Use

Maybe your app needs to handle files from users like profile pictures. Accepting files from others is tricky to do safely. In this article, we’ll see the tools that Django provides to …

  • #Python
  • #Django
  • #settings

Making Sense Of Settings

All Django apps need to be configured in order to run properly. In this article, we will dig into how Django lets you configure your project using a settings module. We’ll also look at …

  • #Python
  • #Django
  • #sessions

Per-visitor Data With Sessions

How does Django know when a user is logged in? Where can the framework store data for a visitor on your app? In this article, we’ll answer those questions and look at a storage concept …

  • #Python
  • #Django
  • #deployment

Deploy A Site Live

You’re ready to take the site you developed and share it with the world. What steps should you take to prepare your Django project for life on the web? That’s the focus of this …

  • #Python
  • #Django
  • #tests

Test Your Apps

How do you confirm that your website works? You could click around and check things out yourself, or you can write code to verify the site. I’ll show you why you should prefer the …

  • #Python
  • #Django
  • #static

Serving Static Files

In this Understand Django article, we’ll examine static files. Static files are critical to apps, but have little to do with Python code. We’ll see what they are and what they …

  • #Python
  • #Django
  • #middleware

Middleware Do You Go?

The topic for this Understand Django article is middleware. We’ll see what middleware is, what it is used for in a Django project, and how to write your own.

  • #Python
  • #Django
  • #authentication
  • #authorization

User Authentication

Our focus in this Understand Django article is how to manage users in your Django application. We’ll study Django’s built-in user authentication system.

  • #Python
  • #Django
  • #applications

Anatomy Of An Application

This article explores applications. Applications are core structural elements of a Django project. We will see the composition of an app and how to use them effectively.

  • #Python
  • #Django
  • #admin

Administer All The Things

This article will look at how maintainers of an application can manage their data through Django’s built-in administrative tools. We will see how to build admin pages and customize the …

  • #Python
  • #Django
  • #models

Store Data With Models

In this article, we will see how to store data into a database with Django models. The article covers how models act as an interface to let your application store and fetch data.

  • #Python
  • #Django
  • #forms

User Interaction With Forms

How do users provide data to your website so you can interact with them? We can answer that question by exploring Django’s form system, and the tools that Django provides to simplify …

  • #Python
  • #Django
  • #templates

Templates For User Interfaces

When your Django application sends back a response with your user interface, templates are the tool you’ll use to produce that user interface. This article looks at what templates are …

  • #Python
  • #Django
  • #views

Views On Views

Django URLs expect to send a response back to a user. Where does that response come from? A Django view! This article looks into the fundamentals of views and how to use them in your …