django-planet

What's new in Django community blogs?

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

Fly.io Certificate Renewal

June 19, 2023 » Anže’s Blog » [Archived Version]

Ensure your SSL certificate doesn't expire to avoid downtime

Read More

Django News - Python 3.7 to 3.12 updates - Jun 16th 2023

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

News New Python 3.7 to 3.11 releases and 3.12.0 beta 2 are now available Another combined release of six separate versions of Python including 3.12.0 beta 2! blogspot.com PEP 703: Making the Global Interpreter Lock Optional (3.12 updates) A very informed discussion on PEP 703 to make the Python GIL optional. python.org Migrate your project to .readthedocs.yaml configuration file v2 An important deprecation …

Read More

Django: A security improvement coming to format_html()

June 14, 2023 » Adam Johnson » [Archived Version]

Can you spot the problem with this Django snippet? from django.utils.html import format_html def user_snippet(user): return format_html(f"<em>{user.name}</em>") Well, the problem is that format_html() is passed an already-templated string! Its escaping ability is not being used. If the user name contains HTML, it …

Read More

Django News - Django bugfix release 4.2.2 - Jun 9th 2023

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

News Django bugfix release: 4.2.2 Features 11 new bugfixes. See the complete notes for more. djangoproject.com Official Django Merchandise Did you know there is an official Django merchandise store? Represent Django in your community with a t-shirt, sweatshirt, hoody, or baby gear. All proceeds are donated to the Django Software Foundation. threadless.com “Boost Your Git DX” available in early access This i…

Read More