Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
An Insider's Guide to DjangoCon US 2025
Tips on having the best conference experience. -
Talk Python: Celebrating Django's 20th Birthday With Its Creators
Recording a recent podcast appearance with Simon Willison, Adrian Holovaty, Will Vincent, Jeff Triplet, and Thibaud Colas. -
Leiden python meetup: HTMX - Jan Murre
(One of my summaries of the fifth Python meetup in Leiden, NL). The person who invented htmx (Carson Gross) always begins with hypermedia. Hypermedia is a media that includes non-linear branching from one location in the media to another, via hyperlinks. HTML is hypermedia, the world's most succesful hypertext. Another important term: HATEOS, hypermedia as the engine of application state. With hypermedia, state is on the server. So not in a javascript frontend. With traditional single page apps that you see nowadays, you only read some json and the frontend needs to know what to do with it. Lots of logic is on the client. And you get "javascript fatigue". With hypermedia, you have server-side rendering. Minimal javascript. Progressive enhancement. SEO friendly. And... accessible by default. The content you get includes the behaviour (like a link to delete an item). HTMX extends HTML with modern interactivity using simple attributes. You can target specific elements on your page for an update, so you don't need to get a full page refresh. And you can use any http verb (get/post/put/delete/patch). And you're not limited to forms and links: any element can trigger a request. Some attribute examples: hx-get issues a GET request … -
Leiden python meetup: memory graph - Bas Terwijn
(One of my summaries of the fifth Python meetup in Leiden, NL). Full title of the talk: memory graph: teaching tool and debugging aid in context of references, mutable data types, and shallow and deep copy. memory_graph is a python debugging aid and teaching tool. It is a modern version of python tutor. (There is an online demo) Python has two categories of types: Immutable types: bool, int, float, str, tuple, etcetera. They cannot be mutated, so when a value is changed, a copy is made. If you add an item to a tuple, you get a new tuple with the extra item. Mutable types: dicts, lists. You can change the values without the actual dict/list changing. You can add items to a list and you still have the same list object. When you want an actual copy of a mutable type, you need to use import copy and copy.copy(your_list). And copy.deepcopy(). list2 = list1 is an assignment. list2 = copy.copy(list1) gives you a second, separate, list object, but it points at the same values inside it as list1. list2 = copy.deepcopy(list1) gives you a second, separate, list object and separate copies of the values inside it. Watch out with … -
Weeknotes (2025 week 35)
Weeknotes (2025 week 35) Summer was and is nice. The hot days seem to be over (for now), but in the last years summer hasn’t really left until the end of September, so we’ll see. I personally like the warm weather but I really hoped that our leaders were smarter. The climate emergency could be seen from far away. The pigheadedness is hard to stomach. And of course it’s not the only problem we’re facing as humanity at all. Releases I did some longer-form writing about two of the releases here: Menu improvements in django-prose-editor and django-content-editor now supports cloning of content django-debug-toolbar 6.0: We have released a new version of the toolbar which supports persisting debugging data to the database. This is especially useful when using ASGI, because we cannot use threadlocal storage for this data then. django-prose-editor 0.18: Reworked the menu system to support dropdowns, not just button groups. Added a custom TextClass extension which allows adding classes to spans and a NodeClass extension which allows adding classes to nodes. Tiptap supports adding arbitrary styles, I’d rather limit this a bit more and only offer predefined CSS classes. django-content-editor 8.0: Added support for cloning content. Made the region … -
Django News - Python Documentary - Aug 29th 2025
News Python: The Documentary | An origin story A 90-minute documentary featuring Guido van Rossum, Travis Oliphant, Barry Warsaw, and many more, and they tell the story of Python’s rise, its community-driven evolution, the conflicts that almost tore it apart, and the language’s impact on... well… everything. youtu.be pypistats.org is now operated by the Python Software Foundation PSF now operates pypistats.org, transferring maintenance of its infrastructure and ensuring reliable community access to Python package statistics and performance data. blogspot.com DjangoCon US 2025 Hackathon form DjangoCon US 2025 is hosting a hackathon for all online and in-person attendees! google.com Django on the Med: Updates. Sponsors. Are you coming? A quick update on Django on the Med 🏖️ — your favourite Django sprint. 🥳 buttondown.com Updates to Django Updates to Django Today, "Updates to Django" is presented by Velda Kiara from Django Events Foundation North America (DEFNA)! 🚀 Last week we had 18 pull requests merged into Django by 10 different contributors - including a first-time contributor! Congratulations to artirix1927 for having their first commits merged into Django - welcome on board! ✨ Django Core Updates ✨ Fixed release notes for format_html() when called without arguments. Additionally, updated the release notes to … -
django-prodserver is live
I have been slowly working on my package django-prodserver which creates a Django management command API to interact with production processes. This package is directed at beginners but others may find it nice to have process configuration stored inside your settings file. Out of the box it supports: gunicorn uvicorn waitress celery django-tasks All of the above are available as package extras so can be installed as follows (or combinations): pip install django-prodserver[gunicorn] pip install django-prodserver[celery] pip install django-prodserver[uvicorn] pip install django-prodserver[waitress] pip install django-prodserver[django-tasks] I have also created a command devserver which is a simple rename of runserver Source Code (& Issues & PRs): https://github.com/nanorepublica/django-prodserver Docs (needs work): https://django-prodserver.readthedocs.io/en/latest/ My learnings on this package (as you can clearly see from the changelog) was the release process! A note to myself to work on this if I hope to produce more packages (and not simply talk about them) I would welcome feedback on this package as I would like to propose this gets merged into core at some point down the line (no rush on this of course). I would be especially keen to get Issues/PRs for any more common production processes I have missed from the package. -
Developing a Real-time Dashboard with Flask, Postgres, and Socket.IO
This tutorial looks at how to develop a real-time inventory tracking dashboard with Flask, Postgres, and Socket.IO. -
How I write Django views
When learning Django, one of the first major forks in the road is how to write your views. Django gives you two main options: simple functions or powerful classes. The official tutorial starts you off gently with function-based views (FBVs). It begins with the basics: def index(request): return HttpResponse("Hello, world. You're at the polls index.") It then gets a bit more complicated, but still using function-based views: def index(request): latest_question_list = Question.objects.order_by("-pub_date")[:5] context = {"latest_question_list": latest_question_list} return render(request, "polls/index.html", context) But quickly after that, it dives into generic views: class IndexView(generic.ListView): template_name = "polls/index.html" context_object_name = "latest_question_list" def get_queryset(self): """Return the last five published questions.""" return Question.objects.order_by("-pub_date")[:5] I think this is a mistake. There are a lot of generic views in Django: View, TemplateView, DetailView, ListView, FormView, CreateView, DeleteView, UpdateView, RedirectView, plus a whole bunch of date-based views: ArchiveIndexView, YearArchiveView, MonthArchiveView, WeekArchiveView, DayArchiveView, TodayArchiveView, DateDetailView. By far the biggest issue I have with these views is their hidden complexity. Just look at the documentation of DetailView. To understand this one class, you need to be aware of its inheritance tree: django.views.generic.detail.SingleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.detail.BaseDetailView django.views.generic.detail.SingleObjectMixin django.views.generic.base.View And then you need to know its method resolution order, or what it calls internally. … -
DjangoCon Africa 2025
Hi there, it's been a while as usual. I have been for the first time to DjangoCon Africa few weeks ago. It was in Arusha, Tanzania. Tim Schilling has written an excellent blog post about his experience at DjangoCon Africa, you can read his blog post. He collected the other abstracts from the conference participants. First DjangoCon Africa It's always a special feeling when it's your first time in a conference. You meet new people, discover how the conference is run and familiarize yourself with the organization and how it is supposed to work. I know DjangoCon Europe well, I have been an organizer, a volunteer and a attendee. One thing you have to know is DjangoCon events are run by volunteers for free. I really would like to thank the organizers and volunteers behind this conference. I know it's a lot of work behind the scenes, but gathering people in one place and seeing folks connecting and share knowledge it's a priceless joy. If you want to help the community globally, this is a really good way to contribute. Moreover, I would like to thank all the sponsors that made this conference possible. This is particularly important to me … -
django-content-editor now supports cloning of content
django-content-editor now supports cloning of content What is the content editor? Django’s builtin admin application provides a really good and usable administration interface for creating and updating content. django-content-editor extends Django’s inlines mechanism with an interface and tools for managing and rendering heterogenous collections of content as are often necessary for content management systems. We are using django-content-editor in basically all projects, as a part of feincms3. The content editor is used not only for building page content, but also for blog entries, for building multi-step intelligent form wizards, for learning units and even to digitize teaching materials for schools, including static and interactive content. The great thing about it is that it enables us to edit complex content inside Django’s administration interface without trying to replace it with a completely separate interface, as some other more well-known Django-based CMS want to do. Cloning content The complexity of managed content has grown a bit, especially since we introduced support for nesting sections. Teaching materials are often available in several learning levels, with only minor differences between them. Unfortunately, the differences aren’t purely additive: It’s not the case that higher levels just have more materials available. Otherwise, we’d probably have used … -
How to migrate from pip-tools to uv
At Caktus, many of our projects use pip-tools for dependency management. Following Tobias’ post How to Migrate your Python & Django Projects to uv, we were looking to migrate other projects to uv, but the path seemed less clear with existing pip-tools setups. Our requirements are often spread across multiple files, like this: -
Built with Django Newsletter - 2025 Week 34
Hey, Happy Friday! Why are you getting this: *You signed up to receive this newsletter on Built with Django. I promised to send you the latest projects and jobs on the site as well as any other interesting Django content I encountered during the month. If you don't want to receive this newsletter, feel free to unsubscribe anytime. News and Updates Apologies for not sending updates in a while. I'm working on partially automatic this process so that I'm more reliable. Because I left the newsletter hanging, something weird happened. We got 5k+ subscribers in just couple of months. Needless to say, 99% of them are fake. I'm going to send this issue to all and see who opens it. For the people who don't open for 3 issues I will just unsub manually. I decided to remove the Django updated part. Too much extra work for now. Hopefully you are ok with that. If not, let me know. Sponsors This issue is sponsored by CodeRabbit an AI Code Reviewer that provides context-aware feedback, refactoring suggestions and highlights code security issues. In plain terms, you finally get a senior level developer reviewing your code! The best news is that it … -
Menu improvements in django-prose-editor
Menu improvements in django-prose-editor I have repeatedly mentioned the django-prose-editor project in my weeknotes but I haven’t written a proper post about it since rebuilding it on top of Tiptap at the end of 2024. Much has happened in the meantime. A lot of work went into the menu system (as alluded to in the title of this post), but by no means does that cover all the work. As always, the CHANGELOG is the authoritative source. 0.11 introduced HTML sanitization which only allows HTML tags and attributes which can be added through the editor interface. Previously, we used nh3 to clean up HTML and protect against XSS, but now we can be much more strict and use a restrictive allowlist. We also switched to using ES modules and importmaps in the browser. Last but not least 0.11 also introduced end-to-end testing using Playwright. The main feature in 0.12 was the switch to Tiptap 3.0 which fixed problems with shared extension storage when using several prose editors on the same page. In 0.13 we switched from esbuild to rslib. Esbuild’s configuration is nicer to look at, but rslib is built on the very powerful rspack which I’m using everywhere. In … -
Django News - State of Python 2025 Results - Aug 22nd 2025
News State of Python 2025 Is Out! Explore the key trends and actionable ideas from the latest Python Developers Survey, which was conducted jointly by the Python Software Foundation and JetBrains PyCharm and includes insights from over 30,000 developers. jetbrains.com PyPI now serves project status markers in API responses PyPI now exposes standardized project status markers through its HTML and JSON index APIs, enabling package installers to programmatically signal dependency status and manage installations. pypi.org Preventing Domain Resurrection Attacks PyPI now checks for expired domains to prevent domain resurrection attacks, a type of supply-chain attack where someone buys an expired domain and uses it to take an account through password resets. pypi.org Updates to Django Today "Updates to Django" is presented by Velda Kiara from Django Events Foundation North America (DEFNA)! 🚀 Last week we had 15 pull requests merged into Django by 10 different contributors - including a first-time contributor! Congratulations to Rohit for having their first commits merged into Django - welcome on board! Django Core Updates ✨ Fix to Subquery.resolve_expression() output field handling which corrects how Django determines the output_field in subqueries. This adjustment restores consistent and predictable query behavior. Template partials arrive in DTL adds two … -
Configurable UI in Software
Another short one today, that is a pattern I have noticed in a couple pieces of software I use, notably Todoist, Slack & Vivaldi. All three of these allow a user to configure the menu options to some degree. Slack has the option to customise the navigation options shown within a particular workspace to optimise the experience for a user. Todoist takes this a step further in the mobile app to allow a user to sort the menu items. Browsers have always had a great experience of customisation, but Vivaldi takes this to an awesome extreme by allowing a user to customise each and every possible context menu, giving true flexability to their users. Personally I have never considered the power of this and wonder if there are any efficient implementation of this for Django without creating a huge amount of complexity. The naive default solution would likely involve a model and a context processor and/or a middleware, it might be something I add in my next project, if we feel it would be beneficial to our users. -
Django News - A New Django Fellow - Aug 15th 2025
News Jacob Tyler Walls is Our New Fellow Jacob Tyler Walls joins the Django Fellowship, bringing Django contributions, Triage and Review experience, ORM expertise, and GIS and open source maintenance skills. djangoproject.com Python 3.14.0rc2 and 3.13.7 are go! Python 3.14 release candidates provide performance enhancements, new language features, and ABI stability, urging Django maintainers to prepare for compatibility testing. blogspot.com Announcing the PSF Board Candidates for 2025! There are four board seats open for this year's PSF election. The timeline, voting details, and candidates are included in the post. blogspot.com Announcing Python Software Foundation Fellow Members for Q2 2025! 🎉 PSF announces Q2 2025 Fellows, recognizing new contributors who lead projects, maintain libraries, organize events, and mentor to grow the Python community globally. blogspot.com Django Software Foundation DSF member of the month - Jake Howard Jake Howard, DSF member and Django contributor, leads DEP 14 and develops Django tasks, advancing native background workers and task infrastructure for Django. djangoproject.com Building better APIs: from Django to client libraries with OpenAPI Combine Django REST Framework with drf-spectacular to generate OpenAPI specs and use openapi-generator plus CI to produce and maintain automated client libraries. djangoproject.com Django’s accessibility contributing guide The Django accessibility team … -
Detecting Code Vulnerabilities Using Python with AI and LLMs
Let’s take a look at how easy detecting vulnerabilities in code can be using the latest and greatest technologies, including scale challenges and costs. -
Standards for third-party packages
I am starting to feel like I have written about this too much as this point, but anyway, third-party packages again! Recently I have been wondering about why third-party packages exist within the Django ecosystem. Broadly there is a few categories Establishing some new functionality that doesn't exist in core (APIs, Feature flags, Payments, etc) Extending an existing API with a new backend (databases, caches etc) Utilities to help with development (perhaps this is a subset of the first point) Packages demonstrating functionality that would be desirable with in Django core. Now one huge benefit to third-party packages is that it allows for choice, be it in the tools and dependencies used, the design and scope of the code. This is both for the package creator/maintainer and the user of said package. However I want to focus in on the last usage above and question whether choice is a good thing for this type of package. If we were to build a package with the goal of it perhaps one day being merged into Django, would it not benefit our future selves and others if the overall design of the package matched Django conventions and standards whereever possible? For example, … -
Why Open Source Makes Sense For Your Business Web Projects
What Is Open Source? Open source software is publicly available code that anyone can use, modify, and improve. It’s the foundation of much of the modern internet and it’s trusted by global enterprises, startups, nonprofits, and government agencies alike. -
Happy 20th Birthday Django!
This Tuesday (tomorrow!), August 12th, we’re teaming up with TriPython to host an informal Django Birthday event at Boxyard RTP in Durham. -
Combining Django signals with in-memory LRU cache
It's easy to combine functools.lru_cache with Django signals to get a good memoization pattern on Django ORM queries. -
Django News - Django 5.2.5 Released - Aug 8th 2025
News Django bugfix release issued: 5.2.5 Django 5.2.5 provides essential bug fixes to boost application stability and performance, ensuring smooth deployments and improved developer experience. djangoproject.com django-rest-framework release v3.16.1 DRF v3.16.1 fixes unique_together and source field bugs, removes legacy Python support, and enhances translations, documentation, and internal testing with Django 5.2 compatibility. github.com Python Insider: Python 3.13.6 is now available Python 3.13.6 incorporates extensive bug fixes, build improvements, and documentation updates that enhance overall performance and reliability essential for Django applications. blogspot.com Join the Mission: Session 5 Applications Open! 🎉 Djangonaut Space opens applications for Session 5, an eight-week group mentorship guiding contributors to make sustained contributions to Django core and related projects. Applications open August 10th, 2025. djangonaut.space Preventing ZIP parser confusion attacks on Python package installers PyPI will reject malformed or ambiguous wheel ZIPs and begin enforcing RECORD consistency to prevent ZIP parser confusion attacks across Python installers. pypi.org Django Software Foundation DSF member of the month - Jake Howard Jake Howard, DSF member and Django contributor, details his DEP 14 background workers, community involvement, and focus on enhancing Django security and performance. djangoproject.com Updates to Django Today 'Updates to Django' is presented by Velda Kiara from Django … -
Documentation that is never wrong
The iommi docs are more correct than most projects because we take a different approach to documentation: part of the test suite is the documentation. Let’s look at an example: def test_grouped_fields(): # language=rst """ .. _group-fields: How do I group fields? ~~~~~~~~~~~~~~~~~~~~~~ .. uses Field.group Use the `group` field: """ form = Form( auto__model=Album, fields__year__group='metadata', fields__artist__group='metadata', ) # @test show_output(form) # @end This ends up as this documentation: This is a normal test that runs with the normal test suite, with some additional markup: The triple quoted strings that are declared with # language=rst are included in the docs. Code is by default included in the documentation You can exclude code with # @test/# @end for checks you don’t want to include in the docs show_output renders some HTML output into a file that is then shown inline in the finished docs The .. uses command is used to mark what features this test uses so the examples are automatically linked from the reference API docs With this infrastructure in place, some fixes or features can be implemented with all the required tests written as the documentation with no additional tests. This radically incentivises writing docs compared to duplicating … -
A beginner check for makemigrations
Could our tools be smarter (even without AI) and helpful to prevent footgun usage? Today I'm taking aim at the Django makemigrations command. I feel fortunate to have been introduced to South and Django migrations at the beginning of my career so the logic of the migration files and the workflow makes sense in my head (or if I was confused I was corrected very early on by colleagues). However I wonder what other tech stack's do in regard to keeping keeping code and schema's in sync. I question this as every so often I run into newcomer's to Django not commiting migration files to source control and running makemigrations in every environment, which if you didn't know is a very bad idea that will lead to numerous issues as the project progresses. This led me to the following question: Could we prevent this happening in the first place, or place a burden on those knowing the risks when taking them? My immediate answer to this is spit out a warning if someone tries to run makemigrations when the DEBUG setting is False. To me this should be the minimum to add to the command. Using the DEBUG setting is …