April 16, 2023 » The Django weblog » [Archived Version]
The release of Django 4.2 represents the final feature release of a major release series of Django. Per DEP-0010 this release triggers the election for the Technical board for the Django 5.x release cycle. All individual DSF members are automatically registered electors. If you are not a DSF member and would like to apply to vote you need to register here. The process of electing a new Technical Board will be: Registration of Electors is now open, and will close Friday April 21, 2023 AoE. Regi…
Read MoreApril 14, 2023 » TestDriven.io » [Archived Version]
This article serves as an introduction to Django REST Framework, focusing on serializers, views, and routers.
Read MoreApril 14, 2023 » Django News » [Archived Version]
News htmx 1.9.0 has been released! htmx 1.9.0 has been released, which includes new features such as support for view transitions and generalized inline event handling via the new hx-on attribute, as well as improvements and bug fixes. htmx.org PSF News: The EU's Proposed CRA Law May Have Unintended Consequences for the Python Ecosystem The PSF has expressed concerns about the proposed Cyber Resilience Act and Product Liability Act, statin…
Read MoreApril 13, 2023 » Django Beats » [Archived Version]
Mariusz Felisiak, a Django and Python contributor and a Django Fellow, explores how to use recent async improvements in Django to run multiple async tasks in an asynchronous view! Django on Fly.io is pretty sweet. Check out how you can be up and running on Fly.io in just minutes. Async support has really been improving and expanding in Django! Since Django 3.0 with the addition of ASGI support (Asynchronous Server Gateway Interface) there has been a steady march of improvements that bring Djan…
Read MoreApril 11, 2023 » /var/ - django » [Archived Version]
Using multiple file storages from the same FileField in Django
Read MoreApril 8, 2023 » Screaming At My Screen » [Archived Version]
Tim does an amazing job applying "Build to Last" principles to Django. Community and reliability are two of the three most important reasons making me enjoy Django for a very long time (documentation being the third). I think it is healthy for any project to know what its distinguishing attributes are, as well as having a plan for where the project will go the next few years. And while I agree with Tim, I want to add a bit more to the big hairy audacious list of goals to take into consideration…
Read MoreApril 7, 2023 » Django News » [Archived Version]
News Django 4.2 released The Django team is happy to announce the release of Django 4.2. djangoproject.com Welcome our new Django Fellow - Natalia Bidart The DSF Board and Fellows Committee are pleased to introduce Natalia Bidart as our new Django Fellow. Natalia will be joining Mariusz Felisiak who is continuing his long and excellent tenure as a Fellow. djangoproject.com Django bugfix release: 4.1.8 This …
Read MoreApril 6, 2023 » Better Simple » [Archived Version]
When you’re working with timestamped data, eventually you’ll come across the need to fetch records that occur every X days. This post attempts to explain how to do that from within the Django ORM. If you’re here for code, then this part is for you! from django.db.models import F, Cast, IntegerField from django.db.models.functions import ExtractDay, Mod from django.utils import timezone from yourproject.models import MyModel # If you want to fetch data starting with a day other # than today…
Read MoreApril 5, 2023 » Carlton's latest posts. » [Archived Version]
Just a quickie… In British politics there’s an idea of collective responsibility: once a policy is agreed in cabinet, members of the government are required to defend it even if they don’t agree with it personally[^1]. In Django we have similar. We try to reach decisions via consensus. Once that’s done, there’s a convention that you’ll support that, even if it didn’t quite go your way. That applies all the more to the Fellows. It is quite literally their job to defend the consensus reached on…
Read MoreApril 5, 2023 » The Django weblog » [Archived Version]
Today we've issued the 4.1.8 bugfix release. The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Mariusz Felisiak: 2EF56372BA48CD1B.
Read More