What's new in Django community blogs?

Django: what’s new in 5.2

April 10, 2025 » Simon Willison's Weblog: django » [Archived Version]

Django: what’s new in 5.2 Adam Johnson provides extremely detailed unofficial annotated release notes for the latest Django. I found his explanation and example of Form BoundField customization particularly useful - here's the new pattern for customizing the class= attribute on the label associated with a CharField: from django import forms class WideLabelBoundField(forms.BoundField): def label_tag(self, contents=None, attrs=None, label_suffix=None): if attrs is None: …

Read More

Running Background Tasks from Django Admin with Celery

April 9, 2025 » TestDriven.io » [Archived Version]

This tutorial looks at how to run background tasks directly from Django admin using Celery.

Read More

Weeknotes (2025 week 15)

April 9, 2025 » Matthias Kestenholz » [Archived Version]

Weeknotes (2025 week 15) Djangonaut Space We have already reached the final week of the Djangonaut Space session 4. I had a great time as a navigator and am looking forward to participate more, but for now I’m also glad that I do not have the additional responsibility at least for the close future. We have done great work on the django-debug-toolbar in our group, more is to come. Progress on the prose editor I have done much work on django-prose-editor in the last few weeks and after a large li…

Read More

Annual meeting of DSF Members at DjangoCon Europe

April 9, 2025 » The Django weblog » [Archived Version]

We’re organizing an annual meeting for members of the Django Software Foundation! It will be held at DjangoCon Europe 2025 in two weeks in Dublin, bright and early on the second day of the conference. The meeting will be held in person at the venue, and participants can also join remotely. Register to join the annual meeting What to expect This is an opportunity for current and aspiring members of the Foundation to directly contribute to discussions about our direction. We will cover our curren…

Read More

Django: what’s new in 5.2

April 6, 2025 » Adam Johnson » [Archived Version]

Django 5.2 was released last Wednesday, another exciting step forward for our favourite web framework. It comes with a composite of new features, contributed to by many, some of which I am happy to have helped with. Below is my pick of highlights from the release notes. If you …

Read More

Django News - Django 5.2 is here! - Apr 4th 2025

April 4, 2025 » Django News » [Archived Version]

News Django 5.2 released Django 5.2 is released! A few highlights are: All models are automatically imported in the shell by default. Composite primary keys support. Overriding a BoundField got a lot easier And much, much more. Read the full release notes for all the details. djangoproject.com Django security releases issued: 5.1.8 and 5.0.14 A security fix for a potential denial-of-service vulnerability. djangoproject.com …

Read More

Silencing Disallowed Host Errors in Django

April 3, 2025 » Software Crafts » [Archived Version]

...so they do not consume your whole Sentry quota

Read More

Composite primary keys in Django

April 2, 2025 » Simon Willison's Weblog: django » [Archived Version]

Composite primary keys in Django Django 5.2 is out today and a big new feature is composite primary keys, which can now be defined like this: class Release(models.Model): pk = models.CompositePrimaryKey( "version", "name" ) version = models.IntegerField() name = models.CharField(max_length=20) They don't yet work with the Django admin or as targets for foreign keys. Other smaller new features include: All ORM models are now automatically imported into ./manage.py shell…

Read More

Django 5.2 released

April 2, 2025 » The Django weblog » [Archived Version]

The Django team is happy to announce the release of Django 5.2. The release notes showcase a composite of new features. A few highlights are: All models are automatically imported in the shell by default. Django now supports composite primary keys! The new django.db.models.CompositePrimaryKey allows tables to be created with a primary key consisting of multiple fields. Overriding a BoundField got a lot easier: this can now be set on a form, field or project level. You can get Django 5.2 from …

Read More

Django security releases issued: 5.1.8 and 5.0.14

April 2, 2025 » The Django weblog » [Archived Version]

In accordance with our security release policy, the Django team is issuing releases for Django 5.1.8 and Django 5.0.14. These releases address the security issues detailed below. We encourage all users of Django to upgrade as soon as possible. CVE-2025-27556: Potential denial-of-service vulnerability in LoginView, LogoutView, and set_language() on Windows Python's NFKC normalization is slow on Windows. As a consequence, django.contrib.auth.views.LoginView, django.contrib.auth.views.LogoutView,…

Read More