django-planet

What's new in Django community blogs?

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

Robust Full-Stack Authentication with Django Allauth, React, and React Router

Sept. 4, 2024 » Josh Karamuth » [Archived Version]

Learn how to integrate django-allauth with React for a powerful and easy authentication system.

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

Django security releases issued: 5.1.1, 5.0.9, and 4.2.16

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

In accordance with our security release policy, the Django team is issuing releases for Django 5.1.1, Django 5.0.9, and Django 4.2.16. These releases address the security issues detailed below. We encourage all users of Django to upgrade as soon as possible. CVE-2024-45230: Potential denial-of-service vulnerability in django.utils.html.urlize() urlize and urlizetrunc were subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters. Thanks to MPr…

Read More

Using Django Allauth without Username Field

Sept. 1, 2024 » Josh Karamuth » [Archived Version]

Learn how to use Django Allauth without a username field in your User model.

Read More

So long, and thanks for all the tabs

Aug. 31, 2024 » Paolo Melchiorre » [Archived Version]

After 8 years of work and professional and personal growth I left 20tab with a lot of gratitude and a bit of nostalgia.

Read More

Weeknotes 8/31: The Inaugural One

Aug. 31, 2024 » james.walters.click » [Archived Version]

Something I've noticed a lot of bloggers doing is a "weeknotes" kind of thing, where they throw together a brief write up of what they've been learning or interacting with over the course of the week. I'm gravitating toward this idea and I want to give it a try. With …

Read More

Django: avoid “useless use of .all()”

Aug. 30, 2024 » Adam Johnson » [Archived Version]

Here’s a little ORM pet peeve of mine that may deepen your understanding of how QuerySets work. Take this code: Digger.objects.all().filter(height_cm__gt=200) The .all() is unnecessary. It’s equivalent to write: Digger.objects.filter(height_cm__gt=200) Why? The manager, Digger.objects, already refers to …

Read More