This post explains step-by-step how to create a custom User model in Django.
Django is a Python-based web framework designed to alleviate the many pain points developers encounter when building modern web applications. It features an easy to follow MTV (model, template, view) architecture, a modern database relationship manager, and a powerful administrative system to aid in quickly building out data (which is great for rapid prototyping). Django applications are typically fast, easy to scale, and, when following best practices, accessible to developers of various skill levels.
Further, most of the articles and tutorials in this section are on the more intermediate to advanced side that cover testing, caching, best practices, deployment, containerizing, securing, and implementing Celery.
Latest Posts (35)
This post looks at how to set up automated performance tests to uncover and prevent inefficient database queries.
Configure Django to load and serve up static and media files, public and private, via an Amazon S3 bucket.
In this article, we'll look at the best use cases for Django and Flask along with what makes them unique, from an educational and development standpoint.
This article looks at a new approach for achieving a Single-page Application (SPA) -- HTML over WebSockets.
Add htmx and Tailwind CSS to Django to improve developer productivity.
Deep dive into Django REST Framework (DRF) serializers.
Add interactive charts to Django with Chart.js.
Integrate Pydantic with a Django application.
Simplify the process of deploying, maintaining, and scaling a production-grade Django app on Heroku.
Set up social auth with Django and Django Allauth.
Commonly used web authentication methods.
Add session-based authentication to a Single-Page Application (SPA) powered by Django and React.
This article looks at how to deploy a Django application to DigitalOcean's App Platform.
This tutorial looks at how to handle subscription payments with Django and Stripe.
Get started with Django's new asynchronous views
This post looks at how to deploy a Django app to Heroku with Docker via the Heroku Container Runtime.
Quickly add Stripe to accept payments on a Django/Python website.
Deploy a Django app to AWS ECS with Terraform.
Deploy a Django app to AWS EC2 with Docker and Let's Encrypt.
Secure a containerized Django app running behind an HTTPS Nginx proxy with Let's Encrypt SSL certificates.
Making Celery work nicely with Django Database Transactions.
Automatically retry failed Celery tasks.
This tutorial details how to configure Django to run on Docker along with Postgres, Nginx, and Gunicorn.
Configure VS Code to debug a Django app running inside of Docker.
Configure a containerized Django app running on an EC2 instance to send logs to CloudWatch.
In this quick tutorial, we'll show you how to configure PyCharm for debugging a Django app running inside of Docker.
Detailed look at Django's built-in caching options.
In this tutorial, we'll look at how to configure GitLab CI to continuously deploy a Django and Docker application to AWS EC2.
This post looks at how to manage periodic tasks with Django, Celery, and Docker.
In this tutorial, we'll look at how to configure GitHub Actions to continuously deploy a Django and Docker application to DigitalOcean.
In the following tutorial, we walk you through the BDD development cycle by programming an example feature using Django and Aloe.
In this tutorial, we'll look at how to configure GitLab CI to continuously deploy a Django and Docker application to DigitalOcean.
This post looks at how to configure Celery to handle long-running tasks in a Django app.
This tutorial looks at how to integrate Stripe Connect into a Django application.