Django v4 Release Summary - Free Samples Included
Tags: django, webdev, opensource, python
Published: 2022-01-17 11:16:26

---
title: Django v4 Release Summary - Free Samples Included
published: true
description: Django version 4.0 release highlights ZoneInfo, Postgresql v9.6 deprecation, CSRF_TRUSTED_ORIGINS usage.
tags: django, webdev, opensource, python
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fquze96m3tekm88tqggj.jpg
canonical_url: https://docs.appseed.us/technologies/django/releases/
---
Hello Coders! 

This article is a quick overview of the latest release of Django Framework. In December 2021 **[Django Version 4](https://docs.djangoproject.com/en/4.0/releases/4.0/)** was released with various upgrades to the framework, improvements, deprecations, and also a few breaking changes. At the end of the article, a few OSS samples that use **[Django](https://appseed.us/admin-dashboards/django/)** v4 are mentioned. *Thanks for reading!*  

--- 

## Django 4 Release Highlights 

> `zoneinfo` default time zone

In this version the default `pytz` time zone has been migrated to `zoneinfo`&#x20;

---

> **Template-based form rendering**

`Forms`, `Formsets`, and `ErrorList` are now rendered using the template engine to enhance customization.

---

> **RedisCache** backend 

This feature provides built-in support for caching with Redis via `redis-py` library

---

> `scrypt` **password hasher**

This new `password hasher` is more secure compared to PBKDF2 (the default hashing algorithm before v4)

---

## Deprecated Features

> PostgreSQL v9.6 `support dropped`

PostgreSQL v9.6 and earlier are not supported by Django v4.0. Django v4.0 will only support PostgreSQL ≥v10.

---

> Oracle v12.2 and 18c `support dropped`

Starting with Django 4, the Oracle version should be at least v19 or above. The Django team has officially removed support for Oracle versions 18c and earlier.

---

## Breaking Changes

> `CSRF_TRUSTED_ORIGINS` config parameter

Values in the [`CSRF_TRUSTED_ORIGINS`](https://docs.djangoproject.com/en/4.0/ref/settings/#std:setting-CSRF\_TRUSTED\_ORIGINS) setting must include the scheme (e.g. `'http://'` or `'https://'`) instead of only the hostname. Also, this might be required in the project configuration.&#x20;

```python
# settings.py sample (partial content)
...
ALLOWED_HOSTS        = ['localhost', 'localhost:85', '127.0.0.1']
CSRF_TRUSTED_ORIGINS = ['http://localhost:85', 'http://127.0.0.1']
...
```

--- 

For curious minds, I will mention a few `open-source` starters released under the MIT license on Github already updated to Django  v4.1. 

---

### [Django Bootstrap 5 Volt](https://appseed.us/admin-dashboards/django-dashboard-volt)

Volt Dashboard is a free and open-source Bootstrap 5 Admin Dashboard featuring over 100 components, 11 example pages and 3 plugins with Vanilla JS.

- 👉 [Django Bootstrap 5 Volt](https://github.com/app-generator/django-volt-dashboard) - Source Code
- 👉 [Django Bootstrap 5 Volt](https://django-volt-dashboard.appseed-srv1.com/) - LIVE deployment

---

![Django Bootstrap 5 Volt - Updated for Django version 4.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/owrzvmifbuw1s1dmgd29.jpg)

--- 

### [Soft UI Design Django](https://appseed.us/product/django-soft-ui-design-system)

Soft UI Design System is a Premium Bootstrap 5 UI Kit designed by Creative-Tim for those who like bold elements and beautiful websites.

- 👉 [Soft UI Design Django](https://github.com/app-generator/django-soft-ui-design) - Source Code
- 👉 [Soft UI Design Django](https://django-soft-ui-free.appseed-srv1.com/) - LIVE Demo

---

![Django Soft UI Design - Updated for Django version 4.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jbexcjy2fa3e9c914zue.png)

---

### [Datta Able Django](https://appseed.us/admin-dashboards/django-datta-able)

The design is a simple BS4 released under the MIT license. 

- 👉 [Datta Able Django](https://github.com/app-generator/django-datta-able) - Source Code
- 👉 [Datta Able Django](https://django-datta-able.appseed-srv1.com/) - LIVE deployment

---

![Django Datta Able - Updated for Django version 4.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ow4h4hg2hr8uf01jdk78.jpg)

--- 

> Thanks for reading! For more resources, feel free to access: 

- 👉 More [Django Dashboards](https://appseed.us/admin-dashboards/django/) - a curated index 
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder