Django Is Getting a Big Update

Manpreet Singh
2 min readJun 22, 2022

Welcome back! Django is an awesome web framework for Python, if you’re new to Django, check out the link below to learn more about it:

Django is now getting another massive update, this is the Django 4.1 update! If you want to check out their release log for this update, here is a link to it:

https://docs.djangoproject.com/en/4.1/releases/4.1/

So, let’s take a look at some of the changes with this update!

Validation Constraints

There are some updates with the validation of constraints which are now checked during model validation.

Asynchronous handler updates

This new version of django brings some new improvements for class-based views! Here is an example from their release log:

import asyncio
from django.http import HttpResponse
from django.views import View

class AsyncView(View):
async def get(self, request, *args, **kwargs):
# Perform view logic using await.
await asyncio.sleep(1)
return

--

--