Dec. 11, 2023 » Adam Johnson » [Archived Version]
Some models have one or a few large fields that dominate their per-instance size. For example, take a minimal blog post model: from django.db import models class Post(models.Model): blog = models.ForeignKey("Blog", on_delete=models.CASCADE) title = models.TextField() body = models.TextField() body is typically many times larger …
Read MoreDec. 11, 2023 » Django on Matt Layman » [Archived Version]
Tailwind CSS is a fantastic tool for making CSS easy to use on your webapps. On the video, I added Tailwind CSS to my Django app and showed how to use it and deploy it to Heroku (which required some extra configuration for JavaScript support).
Read MoreDec. 11, 2023 » Django on Matt Layman » [Archived Version]
Tailwind CSS is a fantastic tool for making CSS easy to use on your webapps. On the video, I added Tailwind CSS to my Django app and showed how to use it and deploy it to Heroku (which required some extra configuration for JavaScript support).
Read MoreDec. 10, 2023 » Paolo Melchiorre » [Archived Version]
An introduction to database generated columns, using PostgGIS, GeoDjango and the new GeneratedField added in Django 5.0.
Read MoreDec. 10, 2023 » James Bennett » [Archived Version]
This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Consider a docstring Suppose you’re writing a Python function and, as you’re supposed to do, you give it a docstring, and you even provide some examples of how the function is supposed … Read full entry
Read MoreDec. 10, 2023 » Carlton's latest posts. » [Archived Version]
2023 in review. For the second year in a row 2023 ends with the dominant theme in life having been family ill-health. I feel like 2023 actually began in Oct 2022, when, as I was travelling back from DjangoCon US, my daughter had an accident and was hospitalized. Since then it’s been all go. My son spent most of the year being diagnosed and (kind-of) treated for a mysterious post-Covid illness that we’re still not sure exactly what to make of. He’s doing better, much better. But it’s been the…
Read MoreDec. 9, 2023 » Django on Matt Layman » [Archived Version]
This video is all about adding the popular WhiteNoise package into my Django app to serve static files (e.g., CSS, JavaScript, and images) directly from the app. I walk through the process from start to finish and deploy it live to show how things work.
Read MoreDec. 9, 2023 » Django on Matt Layman » [Archived Version]
This video is all about adding the popular WhiteNoise package into my Django app to serve static files (e.g., CSS, JavaScript, and images) directly from the app. I walk through the process from start to finish and deploy it live to show how things work.
Read MoreDec. 8, 2023 » The Django weblog » [Archived Version]
The Django Software Foundation Board is pleased to announce that the 2023 Malcolm Tredinnick Memorial Prize has been awarded to Djangonaut Space. Djangonaut Space, run by organizers Dawn Wages, Rachell Calhoun, Sarah Abderemane, Sarah Boyce, and Tim Schilling, is a mentoring initiative dedicated to expanding contributions and diversifying contributors within the Django community. Drawing on their extensive experience as mentors and contributors, they've cultivated an inclusive universe for ne…
Read MoreDec. 7, 2023 » Adam Johnson » [Archived Version]
Since Django’s inception, the web has gradually moved from HTTP to HTTPS, a welcome move for security. But the history has meant older parts of Django have had a lingering HTTP bias. Many of these have been migrated to default to HTTPS instead in previous versions. Django 5.0 …
Read More