March 19, 2025 » The Django weblog » [Archived Version]
Django 5.2 release candidate 1 is the final opportunity for you to try out a composite of new features before Django 5.2 is released. The release candidate stage marks the string freeze and the call for translators to submit translations. Provided no major bugs are discovered that can't be solved in the next two weeks, Django 5.2 will be released on or around April 2. Any delays will be communicated on the on the Django forum. Please use this opportunity to help find and fix bugs (which should…
Read MoreMarch 19, 2025 » Better Simple » [Archived Version]
When removing multi-table inheritance in Django, you need to remove your Model's bases from the migration's model state. This post goes into detail on when this comes up and how to resolve it.
Read MoreMarch 18, 2025 » timonweb.com » [Archived Version]
When developing Django applications, we often need to control which parts of the UI are accessible based on user permissions. Luckily, Django provides a straightforward way to check user permissions directly in templates using the perms object. Using the perms Object in Django Templates Django automatically injects a perms context … Read now
Read MoreMarch 17, 2025 » Simon Willison's Weblog: django » [Archived Version]
suitenumerique/docs New open source (MIT licensed) collaborative text editing web application, similar to Google Docs or Notion, notable because it's a joint effort funded by the French and German governments and "currently onboarding the Netherlands". It's built using Django and React: Docs is built on top of Django Rest Framework, Next.js, BlockNote.js, HocusPocus and Yjs. Deployments currently require Kubernetes, PostgreSQL, memcached, an S3 bucket (or compatible) and an OIDC provider. …
Read MoreMarch 17, 2025 » Simon Willison's Weblog: django » [Archived Version]
suitenumerique/docs New open source (MIT licensed) collaborative text editing web application, similar to Google Docs or Notion, notable because it's a joint effort funded by the French and German governments and "currently onboarding the Netherlands". It's built using Django and React: Docs is built on top of Django Rest Framework, Next.js, BlockNote.js, HocusPocus and Yjs. Deployments currently require Kubernetes, PostgreSQL, memcached, an S3 bucket (or compatible) and an OIDC provider. …
Read MoreMarch 14, 2025 » TestDriven.io » [Archived Version]
In this article, we'll look at the differences between Django QuerySet's defer, only, and exclude methods.
Read MoreMarch 14, 2025 » The Django weblog » [Archived Version]
For March 2025, we welcome Cory Zue (@coryzue.com) as our DSF member of the month! ⭐ Cory Zue has been Django developer for many years. He is currently a member of the DSF Social Media Working Group and he has been a DSF member since October 2022. You can learn more about Cory by checking out his website or visiting Cory's GitHub Profile. Let’s spend some time getting to know Cory better! Can you tell us a little about yourself (hobbies, education, etc) I'm a programmer-turned-manager-turned-e…
Read MoreMarch 14, 2025 » Django News » [Archived Version]
Introduction The DjangoCon US Call for Proposals (CFP) is officially open, so now's your chance to join the incredible lineup of speakers coming to Chicago this September. Whether you're considering giving your first talk or sharing deep technical insights, the community would love to hear from you. April 27th is the deadline! Also, in this issue, we're celebrating International Women's Day with recognition of remarkable contributions by women leaders in the Django comm…
Read MoreMarch 13, 2025 » Simon Willison's Weblog: django » [Archived Version]
Smoke test your Django admin site Justin Duke demonstrates a neat pattern for running simple tests against your internal Django admin site: introspect every admin route via django.urls.get_resolver() and loop through them with @pytest.mark.parametrize to check they all return a 200 HTTP status code. This catches simple mistakes with the admin configuration that trigger exceptions that might otherwise go undetected. I rarely write automated tests against my own admin sites and often feel guilty …
Read MoreMarch 13, 2025 » Simon Willison's Weblog: django » [Archived Version]
Smoke test your Django admin site Justin Duke demonstrates a neat pattern for running simple tests against your internal Django admin site: introspect every admin route via django.urls.get_resolver() and loop through them with @pytest.mark.parametrize to check they all return a 200 HTTP status code. This catches simple mistakes with the admin configuration that trigger exceptions that might otherwise go undetected. I rarely write automated tests against my own admin sites and often feel guilty …
Read More