What's new in Django community blogs?

Optional subfactories for Factory Boy

May 3, 2024 » blog.bmispelon.rocks » [Archived Version]

Optional subfactories for Factory Boy Published on May 3rd I often use a library called Factory Boy to create Django models in my tests. It works fine and I mostly like it but there's one thing that annoys me when it comes to nullable foreign keys on Django models. Let's set up some example models to explain: from django.db import models class Author(models.Model): name = models.CharField(max_length=100) email = models.EmailField(required=…

Read More

Building Reusable Components in Django

May 2, 2024 » TestDriven.io » [Archived Version]

This tutorial looks at how to build server-side UI components in Django.

Read More

Django Views in 100 words

May 2, 2024 » Software Crafts » [Archived Version]

A core component in Django's MVT framework

Read More

Native Django alerting package

April 29, 2024 » Software Crafts » [Archived Version]

Get notified for changes to arbitary queries

Read More

Django: An admin extension to prevent state leaking between requests

April 28, 2024 » Adam Johnson » [Archived Version]

Here’s a small protection I added to a project a few years ago. I was considering it again since I saw a similar potential bug in a Django middleware. Long live the ModelAdmin instances Django’s admin site is configured by the ModelAdmin class. You register this per model …

Read More

Welcome our new Ops member - Baptiste Mispelon

April 28, 2024 » The Django weblog » [Archived Version]

The DSF Board are pleased to introduce Baptiste Mispelon as a new member of the Ops team. Baptiste will join the team who maintains Django’s infrastructure. Baptiste speaking at Django Under the Hood 2015 Baptiste (IPA pronunciation /ba.tist/) is a long-time Django contributor, having been a member of the community for over a decade now. He was an initial board member of the Django Girls Foundation, co-created the Django Under the Hood, series of conferences, and was chair of t…

Read More

Django News - Djangonaut Space 2024 Session 2 - Apr 26th 2024

April 26, 2024 » Django News » [Archived Version]

News Djangonauts Space Session 2 Applications Open! Applications are now open for the next 8-week group mentoring program, where individuals will work self-paced in a semi-structured learning environment. If you want to work with Jeff on Django Packages, he is mentoring a team this session. djangonaut.space Django Developers Survey 2023 Results The results of the Django Developers Survey 2023, which is a collaborative effort between the D…

Read More

Merging a third party package into django core

April 26, 2024 » Software Crafts » [Archived Version]

Question: What would a package look like if it's goal was to be merged into Django core?

Read More

A Syntax Highlight Mystery

April 26, 2024 » blog.bmispelon.rocks » [Archived Version]

A Syntax Highlight Mystery Published on April 26th While writing some documentation for Django today, I noticed something that I thought was a bit weird inside one of the code samples. Can you spot it? .. code-block:: pycon # Import the models we created from our "news" app >>> from news.models import Article, Reporter # No reporters are in the system yet. >>> Reporter.objects.all() <QuerySet []> I must have scrolled p…

Read More