django-planet

What's new in Django community blogs?

QuerySets are Lazy

June 28, 2023 » Django Beats » [Archived Version]

In this article we explore the lazy QuerySets in Django. Django on Fly.io is pretty sweet! Check it out: you can be up and running on Fly.io in just minutes. Did you know that QuerySets are lazy? QuerySets have a hidden gem đź’Ž called lazy evaluation. It is a powerful feature that allows you to postpone the execution of a database’s query until it’s absolutely necessary. Let’s dive right in. What are Lazy QuerySets? đź’­ When you perform operations on a QuerySet, such as applyin…

Read More

Unsung Development Thoughts

June 25, 2023 » Better Simple » [Archived Version]

I've added a new section to my site called Unsung Developer Thoughts. Check it out!

Read More

Django News - Bringing Locality of Behavior to Django - Jun 23rd 2023

June 23, 2023 » Django News » [Archived Version]

News The 2023 PSF Board Election is Open! In order to vote in this election, individuals must be a Contributing, Managing, Supporting, or Fellow member as of June 15, 2023, and have confirmed their intention to vote by June 19, 2023. blogspot.com Wagtail 5.0.2 release notes New features and bug fixes in the latest Wagtail version. wagtail.org Announcing Our New Security Developer in Residence! The Python So…

Read More

pytest fixtures are magic!

June 23, 2023 » REVSYS Blog » [Archived Version]

pytest fixtures are magic!

Read More

First Major Model - Building SaaS with Python and Django #163

June 22, 2023 » Django on Matt Layman » [Archived Version]

In this episode, we got to work on the core modeling for the application. I started by adding some visualization tooling to see the models in the system, then got to modeling of the primary Entry model that will be used throughout the app. Along the way, we set up the Django admin and did some automated testing.

Read More

Django Model Fields With Attributes

June 22, 2023 » django on Jacob Kaplan-Moss » [Archived Version]

I wanted to make a model field where the underlying data is a string, but the field on model instances exposes more attributes. Specifically, a MarkdownField: class Document(models.Model): text = MarkdownField() that exposes a way to get at its content as both HTML and source Markdown: >>> doc = Document(text="hello, *world*") >>> doc.text "hello, *world*" >>> doc.text.html "hello, <strong>world</strong>" This is not too uncommon in Django-land – for…

Read More

First Major Model - Building SaaS #163

June 22, 2023 » Django on Matt Layman » [Archived Version]

In this episode, we got to work on the core modeling for the application. I started by adding some visualization tooling to see the models in the system, then got to modeling of the primary Entry model that will be used throughout the app. Along the way, we set up the Django admin and did some automated testing.

Read More

2023 Python Software Foundation Board Nomination

June 20, 2023 » Paolo Melchiorre » [Archived Version]

My self-nomination statement for the 2023 Python Software Foundation (PSF) Board Election

Read More

Python Community News Interview

June 19, 2023 » Paolo Melchiorre » [Archived Version]

Interview I gave to the “Python Community News” channel regarding my self-nomination for the 2023 Python Software Foundation (PSF) Board of Directors elections.

Read More

Caching in Django with Redis

June 19, 2023 » Django Beats » [Archived Version]

In this post we reduce the load on the database and improve the overall performance of our Django app by caching with Redis. Django on Fly.io is pretty sweet! Check it out: you can be up and running on Fly.io in just minutes. Web servers are math wizards 🧙🏽‍♂️ that can perform complex calculations to build the final - or partial - response that our user sees. Those calculations can vary from expensive queries to the database to rendering the template. For most of small/medium-sized apps, buil…

Read More