Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Pycon NL: 3D data science with Python - Sergio Peral
(One of my summaries of the 2026 one-day Pycon NL conference in Utrecht, NL). Why Python for 3D? It often used to be done in C++. He showed an example in C++ and Python: the Python example was much shorter. But: Python is often only the interface, behind the scenes the library you use is often written in C/C++/Rust/etc. The library landscape. There are many libraries you can use. Loading and storing: laspy, pdal, pyproj. Arays and speed; numpy, scipy, numba, dask. Processing: open3d, trimesh. Visualisation: pyvista, vtk. Learning: scikit-learn, pytorch3d. One real pipeline. He used a pointcloud of part of the Jaarbeurs complex (where the conference was taking place), sourced from the Dutch public https://ahn.nl data source. The density is about 18 points per square meter and it uses some Dutch coordinate system ("RD New"). A point cloud is just a set of points in 3D space. You can also represent it as a mesh (3d areas). A "voxel grid" is also often handy: you convert what you're seeing into small stacked cubes. What you need to do in a project: acquisition, preparation, exploration, analysis, visualisation. No single library does the whole job. A partial exception is numpy: every … -
Pycon NL: practical observability - Daria Korsakova
(One of my summaries of the 2026 one-day Pycon NL conference in Utrecht, NL). Full title: stop firefighting: practical observability for Python APIs, workers & jobs. The most important points: What does it mean for a system to be observable? Does that answer look the same for an API, a worker and a job? Metrics tell us something is wrong, but how do we find out what happened and where? How do we get the system to tell us, before our users do? Where do we actually start without doing everything at once? They started with a prototype of a new system. They had questions like "does it work" and "is it fast enough". So they added a bit of monitoring: just a couple of logs and some simple graphs. And pushed it to production right away... What does "observable" mean? It means you can answer questions like: is it up? Is it ready to serve traffic? Is it doing useful work? Is it failing? Is it slow? What changed recently? Which dependency/workload/customer/job/event-type is involved? Is the answer the same for everything? No. You can have an API that restarts just fine on an error. So: it is up again, … -
Pycon NL: practical software architecture for Python developers - Henk-Jan van Hasselaar
(One of my summaries of the 2026 one-day Pycon NL conference in Utrecht, NL). First some terminology. Cohesion and coupling for instance. Cohesion means how much the elements in a module belong together. "Belonging together": working towards the same goal or function. Watch out what your answer is: is there an "and" in the sentence. "This module reads data and puts it in the database". That's a sign of lower cohesion. Cohesion also has to do with your mental load: what can you keep in your head at the same time? Coupling. Basically the blast radius: how much breaks when you change an object. Change. Not often talked about. Architecture is more than diagrams. Architecture actually is making future changes cheaper. No change, no pain. Loose coupling, high cohesion is good. Tightly coupled, low cohesion is bad. Python allows us lots of freedom. There is no enforcement of architectural boundaries. You have type hints, but they're not enforced. Python's basic assumption is that we're all reasonable and responsible programmers. Let's look at an example problem. We have "the internet" that calls "our REST API" that stores stuff in "our database". We start with a single function in our API that … -
Pycon NL: zero-downtime multi-tenancy in Django - Thiago Bellini Ribeiro
(One of my summaries of the 2026 one-day Pycon NL conference in Utrecht, NL). Full title: zero-downtime multi-tenancy in Django: from user-centric to organizations-based architecture. He works for Sendcloud. Originally their code was 2010-style Django. Every business object (Parcel, Order, etc) is linked to a django User. But... users can belong to organisations and organisations should be the ones connected to the business objects. Ok, they moved to a "core" user and "sub" users. But still users could only belong to a single organisation, for instance. What they actually need is many users per organisation. And also many orgs per user. Roles per membership instead of per user. They designed a new system based upon this. But: they had around 20 Django apps and 40 models with a link to user_id. How to migrate? The solution was to use a "proxy model". They started an "organisation" model that simply was a differently named Django model, pointing at the same table as the existing user model. This allowed them to keep almost everything the same with only minimal database migrations. After that, they moved a little bit of functionality over to the new organisation model. Again, a small, minimal database migration. … -
Pycon NL keynote: sustaining open source for the future - Georgi Ker
(One of my summaries of the 2026 one-day Pycon NL conference in Utrecht, NL). This year is the first community-organized Pycon NL: hurray! Most of us use open source as users. It is free! But all those open source projects only exist because someone started it and because someone maintains it. "Care became contagious": she told the story about someone in Mumbay, India that started to clean up plastic waste that covered the whole beach. He and a 84 year old neighbor. Slowly other people joined in. Then a lot more. Care became contagious! Python started when Guido van Rossum made a new language in his Christmas holiday. But projects like this are fragile. The beach cleanup (almost?) stopped after 109 weeks: administrative lethargy, heckling, etc. (She said it stopped, but I guess it almost stopped, as later on she had photos of a clean beach with newly-hatched turtles). If you start a nice open source project, you're probably not thinking my dream is to answer Github issues for the next 20 years. Sustainability is not endurance. Sustainability is regeneration. Joining a community, but also having the option to leave (just as an example). Open source is safe. In open … -
Pycon NL: building resumable Python pipelines - Yuvraj Singh Pathania
(One of my summaries of the 2026 one-day Pycon NL conference in Utrecht, NL). Full title: fire, forget, regret: building resumable Python pipelines. If you run a task in an async loop, there's often no reference to the task. So it can be garbage collected! You can solve that by keeping a reference in some list. But even then, the whole process can die. What happens with your task then? Often you have to re-run the task. He himself is into LLMs, so failed tasks that you have to re-run can become expensive. BackgroundTasks is part of FastAPI and it works great for spinning off longer running tasks. Real handy, but there is no retry mechanism and no recoverability in case of crashes. "Fire-and-forget". You can use specific task queues. ARQ, Celery, Dramatiq. In this case, the job itself is safe and can be re-tried. But not the individual steps within the job. What he wants is durable execution. Write down every step you finish; on restart, skip what is written. It can save you lots of time (and possibly money). It might be simpler to set up than you think. His code + slides are at https://github.com/batman004/fire-forget-regret Unrelated photo … -
Pycon NL: what's inside an asyncio event loop? - Taras Kozlov
(One of my summaries of the 2026 one-day Pycon NL conference in Utrecht, NL). An asyncio event loop is defined by asyncio.AbstractEventLoop. That's a large API with more than 50 public methods, but only three are fundamental. At the lowest useful leve, the loop manages callbacks, i/o and timers. We need a way to put events on a queue and a way to grab events from a queue and execute them. call_soon() We need timers too, for callbacks that must be run after some time. call_later() Sleep only knows about time. Often we want to sleep until the next time, unless a socket becomes ready first. So we need a "sleep" that can be interrupted by I/O readiness. add_reader(), add_writer() His own example implementation of asyncio for educational purposes is at: https://github.com/tarasko/eduloop , it is only 250 lines. Handy if you want to understand asyncio. He showed this simple example code, incrementally implementing the points above. The nice thing about asyncio is coroutines. A coroutine is an extended kind of function that can be paused and resumed. The result is a "future". A future represents an eventual result of an async operation. So: a future is pending until somebody supplies … -
Hiring in 2026 - Jon Gould
🔗 LinksFoxley TalentFoxley Talent YouTubePeople or Code show on YouTube and Spotify📚 BooksThe Infinity Machine by Sebastian MallabyThe Concept of Mind by Gilbert Ryle [Carlton]The Go-Giver by Bob Burg and Jon Mann📦 ProjectsFarhanAliRaza/prongs — run just the tests you editedjustinmayer/django-benchmark - Django performance benchmark profiler🎥 YouTubeYouTube Channel: @djangochat -
Django Beginners: Part 2
I first wrote about this idea in day 287 where I framed it under the name of django.contrib.beginners. The idea (as a quick reminder) is that if I wondered if we could have a package that added extra warnings or safeguards for beginners that meant they would not make common foot-gun mistakes with Django. I've since expanded on the idea a bit and formalized two concepts that I've called Guardrails and Scaffolds. Guardrails being those warnings, those limiters that are stricter defaults that prevent beginners from committing those common mistakes when starting with Django that we know to avoid. They can be opinionated, and we can choose whether to turn them on and off, and silence them, or that kind of thing. Scaffolds on that other, which are pieces of code that at times prevent the rabbit hole or make things easy to get started. A really good example of this is that django.contrib.auth, doesn't ship with a user registration view & url because there are an infinite combinations of what you could do with registration in a project. But that often causes a new developer to jump down the rabbit hole of the auth documentation and become confused. And … -
You Can't Change Your Boss
I frequently get asked for advice on dealing with a bad boss. That’s not special: “my boss sucks, what do I do?” is an incredibly well-represented genre in advice columns like Ask a Manager, etc. My advice here is simple: you can’t change your boss’s behavior. It’s best to treat your boss’s behavior as fundamentally immutable, like a force of nature. You can certainly try asking the rain to hold off until after your hike, but it’s unlikely to be effective. Assume that trying to get your boss to change their behavior will be similarly ineffective. Your only real choices when you have a bad boss are: learn to live with it, or find another job. (These choices suck, I’m aware.) Thing is, giving feedback across a power gradient is rarely successful. At work, feedback always carries an implicit “or else”: when your boss tells you to make a change, there’s an implicit “… or I’ll fire you” that’s rarely spoken but always there. Even in the most egalitarian workplaces, even with the best bosses, you’ve got an incentive — keeping your job — to listen to your boss’s feedback. The reverse isn’t true: you have no power over your … -
Issue 358: Django 6.1.2, 6.0.9, and 5.2.18 Security Releases and Djangonaut Space Session 7
News Django security releases issued: 6.1.2, 6.0.9, and 5.2.18 Four CVEs fixed: denial-of-service risks in language-code lookups and HTTP header parsing, spatial lookups that could make GDAL fetch external rasters, and model formsets with editable primary keys that forged POST data could use to delete or create instances. Raster bytes passed to spatial lookups must now be wrapped in GDALRaster, a backward-incompatible change, so upgrade and check your GIS code. Welcome to Session 7 Teams 👩🏽🚀 Djangonaut Space Session 7 runs October 12 to December 6 with its biggest cohort yet: 28 Djangonauts picked from 92 applicants, across eight teams working on Django core, accessibility, Django Debug Toolbar, djangoCMS, and the Django Girls+ website, plus two Python projects, BeeWare and Render Engine. Django Software Foundation Django security reporting update Django no longer takes new security reports through HackerOne. Existing HackerOne reports stay open with the Security Team, and new issues should go to security@djangoproject.com as described in the security policy. Python Software Foundation Python 3.15.0 candidate 3 is here! Last-minute lazy-import release blockers earned 3.15 a surprise third release candidate, pushing 3.15.0 final to October 9. Maintainers should test and publish 3.15 wheels now; release candidate wheels will work with … -
Django: set up its test suite with uv
When contributing to Django, you’ll want to run its test suite to check your changes. The official contributing docs cover setup in Running the unit tests, using a virtual environment and pip. Here’s an alternative guide using uv. Setup First, clone Django and change into the repository: $ git clone https://github.com/django/django $ cd django (You can fork it later if you want to make a pull request.) Then, create a virtual environment: $ uv venv Using CPython 3.14.6 Creating virtual environment at: .venv Activate with: source .venv/bin/activate uv automatically picks a compatible Python version for you, downloading one if needed. Next, install Django in editable mode, plus the test requirements, in one command: $ uv pip install -e . -r tests/requirements/py3.txt uv pip automatically targets the .venv directory, so there’s no need to activate it first. Run the tests Activate the virtual environment, change into the tests directory, and run runtests.py: $ source .venv/bin/activate $ cd tests $ ./runtests.py Testing against Django installed in '/.../django/django' with up to 8 processes ... Skip pylibmc if it won’t build The test requirements include pylibmc, a memcached client that wraps the libmemcached C library. In my experience, it’s the biggest sticking point when … -
Questions to Ask a Company Using Django
Interview questions for your next job. -
Issue 357: Malcolm Tredinnick Prize Nominations and Django 6.2 Features
News Nominate Someone for the 2026 Malcolm Tredinnick Memorial Prize The annual prize honors someone who welcomes newcomers, freely helps others, and grows the community, with a stipend meant to fund travel to a DjangoCon, PyCon, or sprint. Nominate someone by October 15 (Anywhere on Earth). Python 3.10.22, 3.11.17, 3.12.15, 3.13.16 and 3.14.8 are now available! Security releases across all five series, with fixes for tarfile extraction filters, zipfile decompression bombs, and SSL hostname validation. Python 3.10.22 is the final 3.10 release, and 3.13.16 is the last full maintenance release of 3.13, so plan your upgrades. Python Language Summit 2026 Seth Larson's writeups from the first summit held in Europe since 2011, where 47 core developers in Kraków covered free-threading, Rust for CPython, garbage collection, type manipulation, and an AGENTS.md for CPython. The summit will now alternate between PyCon US and EuroPython each year. Updates to Django Today, "Updates to Django" is presented by Raffaella from Djangonaut Space! 🚀 Last week we had 6 pull requests merged into Django by 5 different contributors News in Django 6.2: The new django.utils.asyncio.maybe_aclosing returns a context manager that calls aclose() on a caller-provided iterator only if it defines one. Support for GDAL 3.3 … -
Django: serve apple-app-site-association and assetlinks.json
If your site has companion Apple or Android apps, you probably want links to your site to open in those apps, when installed. Both platforms support this, with Apple calling the feature Universal Links and Android calling it App Links. But an app can’t just claim to handle your links, or any malicious app could hijack them. Instead, both platforms require two-way association: the app declares which domains it handles, and each domain confirms which apps may handle its links. The domain’s side of that handshake is a JSON file served under the reserved /.well-known/ path, one per platform: /.well-known/apple-app-site-association for iOS, iPadOS, and macOS. /.well-known/assetlinks.json for Android. These files can do more than link handling. Both can also associate apps with your site for password autofill and passkeys, so users can sign in to your apps with credentials saved from your site. In this post, we’ll look at serving these two files from Django, with tests. It follows the same pattern as my recent post on serving a security.txt file, but with JSON and a few gotchas covered below. Write the Apple file Here’s an example apple-app-site-association file, following Apple’s documentation: { "applinks": { "details": [ { "appIDs": ["ABCDE12345.com.example.app"], … -
Undocumented Django: Generating a SECRET_KEY
Django has some of the best documentation out there, a point of pride from the beginning that continues today thanks to the heroic efforts of many volunteers. But for all … -
Django: serve a security.txt file
When a security researcher finds a vulnerability in your site, they need a way to tell you about it. Without a clear contact, they may resort to guessing at addresses like security@<yourdomain>, messaging random folks on social media, or give up. And of course, in the worst case, they might just publish the details, leaving you to find out when attackers do. security.txt is a web standard to fix this problem. It’s a small text file, served at the reserved path /.well-known/security.txt, that says how to report security issues to your organization. It was standardized in April 2022 as RFC 9116. In this post, we’ll look at serving a security.txt file and adding unit tests and a system check to keep it current. Write the file A security.txt file contains a series of Field: value lines, plus optional comments starting with #. Here’s an example: # Security contact information for example.com Contact: mailto:security@example.com Expires: 2027-09-01T00:00:00Z Preferred-Languages: en Canonical: https://example.com/.well-known/security.txt Policy: https://example.com/security/ The two required fields are: Contact: Gives a way to reach you, as a URI. That’s normally a mailto: email address, but it can also be an https: URL for a web page or form, or a tel: phone … -
Weeknotes (2026 week 40)
Weeknotes (2026 week 40) I have been at Django on the Med 🏖️ and already wrote a lengthy post about that. I did a lot of work on a DEP for adding import map support to Django which is currently also being discussed on the forum. Apart from that I’m not going to repeat anything from the post linked above, so check it out if you want to know more. Motivated by a discussion I had at the sprint I also improved my release process. I now have a make-release script in my dotfiles which updates the CHANGELOG with the version, bumps the version itself in the repo and commits and tags the release. The rest is handled by trusted publishing. I’m now finally also properly handling patch releases so that you don’t have to check the history to know what’s in a patch release. I already did that for minor and major version bumps, but was a bit too lazy. Now I can be even lazier and still more correct, and it feels great. Next, I refactored the static site generator script for this blog to be much faster. I now do not have to wait when saving before … -
Django on the Med
🔗 LinksDjango on the MedNew technical governance approved (DEP 19)Executive director search extendedDjangoCon Europe 2027 (Innsbruck, Austria)django-bgtdjango-benchmarkOpen DEPs pull requests from Django on the Med📚 BooksThe Narrow Road to the Deep North and Other Travel Sketches by Matsuo BashoThe Wall by Marlen Hausofer🎥 YouTubeYouTube Channel: @djangochat -
Rebuilding my development setup in 2026
It's been another busy month and I have been promising myself that I would write about what has been this yet unfinished rabbit hole of my spare time for the last 6 weeks. It's unfinished as I am yet to test the biggest hypothesis of this article, however let's start at the beginning. It started with a desire to more easily review code Claude was generating from my phone, before it got committed to git, before being pushed to Github. At a similar time Jeff publish his article of how he works from anywhere and I also listened to a podcast which peaked my interest in Ghostty as a potential replacement to iTerm2. Finally I was getting slightly frustrated with that Claude would stop running anytime I closed my laptop lid. This generated my current hypothesis, could I create a setup that would work for me personally where I could run Claude anytime and access it from anywhere. This is the rabbit hole I jumped down and started a very long conversation with Claude Fable where I considered other terminal emulators, I gave it Jeff's article and we were off to the races with some trials using my laptop from … -
I don't write codebase documentation anymore
Hello everyone 👋 Confession time: in 10+ years of writing software, I have never kept documentation up to date. Not once. And I’ve tried! Confluence spaces, GitHub wikis, a docs/ folder, READMEs that start strong and stop being true three sprints later. It always goes the same way. Someone writes a nice page, the code moves, nobody touches the page, and six months later a new person reads it, believes it, and loses an afternoon. Updating docs always felt like a chore I owed someone, and I pay chores about as reliably as you’d expect. A while back I started reading some really cool wikis that a paid AI service had generated for a few projects. Architecture overviews, flow diagrams, a page for every subsystem, all built from the code. I loved them. What I didn’t love was that they lived on someone else’s platform, and I couldn’t shape what they said or how they said it. So I thought: I want my own. In my repo, in plain markdown, maintained by an agent, updated on every push. So I built it. One of my projects now has a 95-page wiki: about 134,000 words and 67 Mermaid diagrams. I didn’t … -
Looking back at Django on the Med 🏖️ 2026
Looking back at Django on the Med 🏖️ 2026 I haven’t been to a programming conference in a really long time. That was mostly due to laziness, wanting to stay at home and decision fatigue because I didn’t know how to travel sustainably and didn’t know where to stay during the conference. I had been talking online to Carlton for some time and when Django on the Med 🏖️ 2026 was announced I knew I had to go. What’s not to like about a conference in Italy with all the good food and the Mediterranean Sea? I managed to overcome my inner Schweinehund (the German term for the lazy voice in your head that tells you to stay on the couch) and reserved both the (free) ticket for the conference itself and also the train ticket to go from Zurich to Pescara. The train takes 8 or 9 hours depending on the connection with a single change in Milano. The conference itself consists only of development sprints and socialising – no talks and nothing to prepare in advance for participants, except taking the computer with you and optionally having some ideas about what you want to work on. The import … -
Show and hide Wagtail admin fields without writing any JavaScript
Oh boy, I love Wagtail. Haven't I said this too many times on this blog? I recently built a small promo banner for a client's Wagtail site. The editor form was simple: some text, a button label, and a "Button links to" radio with two options, "Page" or "External URL". … Read now -
Nice schedule for upcoming Pycon NL
In 2.5 weeks (Thursday 15 October), I'll attend the Pycon NL one-day conference in Utrecht. Always a friendly conference with some good speakers. I just took a look at the talks schedule and got pretty excited. A talk about 3D, point clouds etc and how to process it with Python: useful for the company I work for. I'll attend the practical observability talk: we do observe and we have lots of metrics, but really tying everything together, especially with our Python apps, still needs some work. Of course there are some talks, scheduled at the same time, that both look useful. "New static security scanner" versus "practical software architecture" for instance. "Zero-downtime multi-tenancy in Django" pushes a lots of buttons for me :-) The talk before it looks like it will explain some theoretical background behind "data models", with a bit of LLM explanation included. That might help me understand it all better (I'm not using LLMs myself). "Resumable Python pipelines" hopefully broadens my view a bit. We're using the Prefect task runner a lot within the company (I even gave a talk about it at PyGrunn and at two meetups). Recently, I've started using Django's new "django-tasks" framework. So... … -
Python: join my meetup in Lisbon, 8th October
I previously announced my Python optimization workshop in Lisbon, on 10th October (which still has a few places). I am now pleased to add a Python/Django meetup on the Thursday before. Here are the details: What: Python/Django meetup When: Thursday 8th October 2026, 18:00–20:00 Where: Terrace Restaurant, Praça Príncipe Perfeito, Lisbon Cost: Free Register on Luma Join us for an informal evening discussing Python, Django, and related topics (AI will surely come up). This meetup is hosted by Adam Johnson, a Django contributor, blogger, and author of four technical books (on Django, Git, and GitHub). There won’t be any talks scheduled at this event, just relaxed conversation around the core topics of software engineering and improving developer experience. Come with questions, topics of interest, or just an interest in meeting other like-minded engineers. Drinks are available to purchase from the venue. Places are limited to keep the evening small and conversational. Fin I hope to see you there, —Adam