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.
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 (62)
Configure Django to load and serve up static and media files, public and private, via an Amazon S3 bucket.
This article explains step-by-step how to create a custom user model in Django.
Enable multi-region support in a Python application.
This article looks at how to configure Celery to handle long-running tasks in a Django app.
Deploy a Django application to Render.
Set up social auth with Django and Django Allauth.
Deploy a Django application to Fly.io.
This article explains step-by-step how to migrate to a custom User model mid-project in Django.
Deploy a Django application to Dokku on a DigitalOcean droplet.
Configure GitHub Actions to continuously deploy a Django and Docker application to Linode.
Integrate Mailchimp with Django for newsletters and transactional emails.
Differences between Django's class-based views (CBV) and function-based views (FBV).
This tutorial looks at how to handle subscription payments with Django and Stripe.
Get started with Django's asynchronous views.
Looks at how to leverage Django's default permission system to assign permissions to users and groups.
Add htmx and Tailwind CSS to Django to improve developer productivity.
Deploy a Django Application to AWS Elastic Beanstalk.
How to deploy a Django application to DigitalOcean's App Platform.
How to work with static and media files in a Django project, locally and in production.
Use Django Channels to create a real-time application.
Looks at how to add pagination to a Django project.
Making Celery work nicely with Django Database Transactions.
Automatically retry failed Celery tasks.
Deploy a Django app to AWS ECS with Terraform.
Quickly add Stripe to accept payments on a Django/Python website.
How to deploy a Django app to Heroku with Docker via the Heroku Container Runtime.
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.
Accept crypto Payments with Django and Coinbase Commerce.
Add basic and full-text search to a Django app with Postgres.
Deep dive into Django REST Framework's most powerful view, ViewSets.
Shows you how to configure PyCharm for debugging a Django app running inside of Docker.
Use Django REST Framework's Generic Views to prevent repeating certain patterns over and over again.
Deep dive into how Django REST Framework's views work and its most basic view, APIView.
Configure Django to load and serve up static and media files, public and private, via DigitalOcean Spaces.
Looks at how to integrate Django REST Framework with Elasticsearch.
Secure a containerized Django app running behind an HTTPS Nginx proxy with Let's Encrypt SSL certificates.
Deploy a Django app to AWS EC2 with Docker and Let's Encrypt.
This tutorial details how to configure Django to run on Docker along with Postgres, Nginx, and Gunicorn.
How to use the low-level cache API in Django.
Perform GET, POST, PUT, and DELETE AJAX requests in Django with the Fetch API and jQuery.
Add multiple language support to your Django project.
Detailed look at Django's built-in caching options.
Configure GitLab CI to continuously deploy a Django and Docker application to AWS EC2.
How to build custom permission classes in Django REST Framework.
This post looks at how to manage periodic tasks with Django, Celery, and Docker.
Configure GitHub Actions to continuously deploy a Django and Docker application to DigitalOcean.
How the built-in permission classes work in Django REST Framework.
Walks you through the Behavior-Driven Development (BDD) development cycle by programming an example feature using Django and Aloe.
Configure GitLab CI to continuously deploy a Django and Docker application to DigitalOcean.
How permissions work in Django REST Framework.
This tutorial details how to configure Django to run on Docker along with Postgres, Gunicorn, Traefik, and Let's Encrypt.
This post looks at how to set up automated performance tests to uncover and prevent inefficient database queries.
This article looks at a new approach for achieving a Single-page Application (SPA) -- HTML over WebSockets.
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.
Commonly used web authentication methods.
Add session-based authentication to a Single-Page Application (SPA) powered by Django and React.
This tutorial looks at how to integrate Stripe Connect into a Django application.