django-planet

What's new in Django community blogs?

The only green Python

Sept. 11, 2024 » Carlton's latest posts. » [Archived Version]

Today I learnt. Some fresh Python releases, including Python 3.13rc2 — which is the OK, I better had add it to the flows point for me at the moment 🤹 I get my Python from python.org, and I use Glyph’s great mopup tool to keep it updated. I run it in a loop on all the versions I have installed: #!/bin/bash # Update installed Python versions. python_versions=("python3.9" "python3.10" "python3.11" "python3.12" "python3.13t") for PYTHON in "…

Read More

Mentoring Maintainers

Sept. 8, 2024 » Carlton's latest posts. » [Archived Version]

I’m going to try something new. For this upcoming quarter, so until the end of the year, I’m going to put aside Thursday afternoons (Europe) to be online, doing my maintenance, a kind of office hour, offering a support group to existing maintainers, and offering mentoring to new or prospective maintainers in the Django ecosystem. (More details to follow as I come up with them.) If it goes well, we can carry on beyond the new year. I feel like I’ve been banging this drum for a long time but, t…

Read More

Django: hoist repeated decorator definitions

Sept. 7, 2024 » Adam Johnson » [Archived Version]

Django provides us with a rich set of view decorators. In this post, we’ll look at a technique for hoisting repeated use of these decorators to reduce repetition. Repeated @cache_control calls Here are two public views with the same @cache_control decorator: from django.views.decorators.cache import cache_control @cache_control …

Read More

Djangonaut Space - New session 2024

Sept. 6, 2024 » The Django weblog » [Archived Version]

We are thrilled to announce that Djangonaut Space, a mentorship program, is open for applicants for our next cohort! Djangonaut Space is holding a third session this year! This session will start on October 14th, 2024. We are accepting applications until September 14th, 2024. More details can be found in the website. Djangonaut Space is a free, 8-week group mentoring program where individuals will work self-paced in a semi-structured learning environment. It seeks to help members of the communi…

Read More

django-filter: filtering a foreign key model property

Sept. 6, 2024 » Valentino Gagliardi - Django RSS Feed » [Archived Version]

How to filter a foreign key model property with django-filter.

Read More

Django News - Django security releases issued: 5.1.1, 5.0.9, and 4.2.16 - Sep 6th 2024

Sept. 6, 2024 » Django News » [Archived Version]

News Django security releases issued: 5.1.1, 5.0.9, and 4.2.16 Two security fixes were just released. As always, the best security measure you can take is to always be on the latest version of Django. djangoproject.com Announcing Djangonaut Space Session 3 Applications Open! Session 3 applications are now open until September 14th. djangonaut.space Sponsored Link 1 Try Scout APM for free! Sick of…

Read More

Kamal On A Droplet - Building SaaS #201

Sept. 6, 2024 » Django on Matt Layman » [Archived Version]

In this episode, we continued working with the Kamal deploy tool. Last time, we build a demo image. With this session, we created a Digital Ocean Droplet (i.e., VM) and deployed to that. Along the journey, we learned a lot about how Kamal operates.

Read More

Kamal On A Droplet - Building SaaS #201

Sept. 6, 2024 » Django on Matt Layman » [Archived Version]

In this episode, we continued working with the Kamal deploy tool. Last time, we build a demo image. With this session, we created a Digital Ocean Droplet (i.e., VM) and deployed to that. Along the journey, we learned a lot about how Kamal operates.

Read More

Django: a pattern for settings-configured API clients

Sept. 4, 2024 » Adam Johnson » [Archived Version]

Here’s an example of a common pattern in Django projects: from acme.api import APIClient from django.conf import settings acme_client = APIClient(api_key=settings.ACME_API_KEY) def order_anvil() -> None: acme_client.anvils.order(...) An API client is instantiated as a module-level variable based on some settings. This approach has some drawbacks …

Read More

Django: build a Microsoft Teams bot

Sept. 3, 2024 » Adam Johnson » [Archived Version]

Recently, I built a Microsoft Teams bot for a client, inside their Django project. It wasn’t fun or easy, but the experience did increase my resiliency as a developer. I also went into this forewarned by my wife, a product manager also known as “the integration queen”, who has …

Read More