<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/tags/django/best-of/2021" -->

---
title: Best Django posts of 2021 | daily.dev
description: The most upvoted Django posts of 2021, curated by the daily.dev community.
canonical: https://daily.dev/tags/django/best-of/2021
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/tags/django/best-of/2021
og:type: website
og:site_name: daily.dev
og:title: Best Django posts of 2021 | daily.dev
og:description: The most upvoted Django posts of 2021, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Django — 2021

1. 1  
[](/posts/what-s-new-in-django-v4-0-rnz4ggld3 "What’s new in Django v4.0")  
Article  
![Avatar of logrocket](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/logrocket)LogRocket · 5y  
What’s new in Django v4.0  
In December 2021, the Django team released Django v4.0\. It contains various upgrades to the framework, like improved customization and the use of the template engine for forms, Formsets, and ErrorList. In this article, we’ll go through some of the new features in Django v 4.0, as well as some older third-party versions.  
46  
3
2. 2  
[](/posts/11-django-best-practices-that-will-make-you-pro-lskwlxtsc "11 Django best practices that will make you PRO")  
Article  
![Avatar of geekculture](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/9ed83f96af5243178a743739c98143c4)Geek Culture · 5y  
11 Django best practices that will make you PRO  
Django is an open-source python-based web framework that helps to build web applications. With 4+ years of experience in the Django framework, I have listed down some of the best Django practices. Best practices are for intermediate or professional developers. Don’t get intimidated/overwhelmed if you are a beginner.  
46  
3
3. 3  
[](/posts/building-a-rest-api-with-django-rest-framework-k5uegk0ra "Building a REST API with Django REST Framework")  
Article  
![Avatar of devto](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto)DEV · 5y  
Building a REST API with Django REST Framework  
This is the second part of a two-part tutorial on building a Notes application with React. We will be using the Django REST framework to create the API endpoints. We'll also be updating the views to handle the GET and DELETE methods that we need to use in our application.  
17
4. 4  
[](/posts/django-htmx-and-alpine-js-modern-websites-javascript-optional-bbaby-rg3 "Django, HTMX and Alpine.js: Modern websites, JavaScript optional")  
Article  
![Avatar of changelog](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f65a74bcb028447aa606f06695d607d3)Changelog · 5y  
Django, HTMX and Alpine.js: Modern websites, JavaScript optional  
In this installment we'll turn to the low- and no-JavaScript world. We'll cover some of the common approaches to "sprinkling in" light amounts of JavaScript into your Django projects. After that we'll dive into two of the best low-Java Script tools to use with Django today: Alpine.js and HTMX.  
10

[See all Django archives](/tags/django/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/tags/django/best-of/2021#page","url":"https://daily.dev/tags/django/best-of/2021","name":"Best Django Posts of 2021","description":"The most upvoted Django posts of 2021, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/tags/django/best-of/2021#items","numberOfItems":4,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/what-s-new-in-django-v4-0-rnz4ggld3","name":"What’s new in Django v4.0"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/11-django-best-practices-that-will-make-you-pro-lskwlxtsc","name":"11 Django best practices that will make you PRO"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/building-a-rest-api-with-django-rest-framework-k5uegk0ra","name":"Building a REST API with Django REST Framework"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/django-htmx-and-alpine-js-modern-websites-javascript-optional-bbaby-rg3","name":"Django, HTMX and Alpine.js: Modern websites, JavaScript optional"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Tags","item":"https://daily.dev/tags"},{"@type":"ListItem","position":3,"name":"Django","item":"https://daily.dev/tags/django"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/tags/django/best-of"},{"@type":"ListItem","position":5,"name":"2021"}]}]}
```

