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 MoreJune 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 MoreJune 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 MoreJune 20, 2023 » Paolo Melchiorre » [Archived Version]
My self-nomination statement for the 2023 Python Software Foundation (PSF) Board Election
Read MoreJune 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 MoreJune 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 MoreJune 19, 2023 » Anže’s Blog » [Archived Version]
Ensure your SSL certificate doesn't expire to avoid downtime
Read MoreJune 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 MoreJune 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 MoreJune 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