Django v4 Release Summary – Free Samples Included

Hello Coders!

This article is a quick overview over the latest release of Django Framework. In December 2021 Django Version 4 has been released with various upgrades to the framework, improvements, deprecations, and also a few breaking changes. At th…


This content originally appeared on DEV Community and was authored by Sm0ke

Hello Coders!

This article is a quick overview over the latest release of Django Framework. In December 2021 Django Version 4 has been 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 v4 are mentioned.

Thanks for reading!

Release highlights

zoneinfo default time zone

In this version the default pytz time zone has been migrated to zoneinfo

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 setting must include the scheme (e.g. 'http://' or 'https://') instead of only the hostname. Also, this might be required in the project configuration.

# 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

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 - Updated for Django version 4.

Soft UI Design Django

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

Django Soft UI Design - Updated for Django version 4.

Datta Able Django

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

Django Datta Able - Updated for Django version 4.

Thanks for reading! For more resource and support, feel free to access:


This content originally appeared on DEV Community and was authored by Sm0ke


Print Share Comment Cite Upload Translate Updates
APA

Sm0ke | Sciencx (2022-01-17T11:16:26+00:00) Django v4 Release Summary – Free Samples Included. Retrieved from https://www.scien.cx/2022/01/17/django-v4-release-summary-free-samples-included/

MLA
" » Django v4 Release Summary – Free Samples Included." Sm0ke | Sciencx - Monday January 17, 2022, https://www.scien.cx/2022/01/17/django-v4-release-summary-free-samples-included/
HARVARD
Sm0ke | Sciencx Monday January 17, 2022 » Django v4 Release Summary – Free Samples Included., viewed ,<https://www.scien.cx/2022/01/17/django-v4-release-summary-free-samples-included/>
VANCOUVER
Sm0ke | Sciencx - » Django v4 Release Summary – Free Samples Included. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/01/17/django-v4-release-summary-free-samples-included/
CHICAGO
" » Django v4 Release Summary – Free Samples Included." Sm0ke | Sciencx - Accessed . https://www.scien.cx/2022/01/17/django-v4-release-summary-free-samples-included/
IEEE
" » Django v4 Release Summary – Free Samples Included." Sm0ke | Sciencx [Online]. Available: https://www.scien.cx/2022/01/17/django-v4-release-summary-free-samples-included/. [Accessed: ]
rf:citation
» Django v4 Release Summary – Free Samples Included | Sm0ke | Sciencx | https://www.scien.cx/2022/01/17/django-v4-release-summary-free-samples-included/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.