django-planet

What's new in Django community blogs?

Cater Waiter, Template Bugs, and Type Fixes - Building SaaS with Python and Django #155

March 16, 2023 » Django on Matt Layman » [Archived Version]

In this episode, I did another Exercism problem in Python that dug into Python sets. Once the exercise was complete, we went back to the issue list. I debugged and fixed a template error, the spent time improving types with my Django app.

Read More

Cater Waiter, Template Bugs, and Type Fixes - Building SaaS #155

March 16, 2023 » Django on Matt Layman » [Archived Version]

In this episode, I did another Exercism problem in Python that dug into Python sets. Once the exercise was complete, we went back to the issue list. I debugged and fixed a template error, the spent time improving types with my Django app.

Read More

Sync or Async? Unpacking the Mysteries of Django Signals

March 15, 2023 » Django on Matt Layman » [Archived Version]

Django is a popular web framework for Python developers, known for its robustness, flexibility, and security. One of the features that make Django powerful is its signal system. Signals allow developers to trigger certain actions when specific events occur, such as when a model is saved or deleted. However, there is often confusion about whether Django signals are asynchronous or not. In this article, we will explore this question and discuss the tradeoffs associated with using Django signals.

Read More

Python Web Conference 2023

March 14, 2023 » Paolo Melchiorre » [Archived Version]

The Python Web Conf is the most in-depth Python conference for web developers.

Read More

Time Travel with django-simple-history

March 14, 2023 » Django on Matt Layman » [Archived Version]

If you’re interested in Django development, you might have come across the django-simple-history package. It’s a great tool that can help you keep track of changes made to your models over time. In this article, we’ll take a closer look at django-simple-history and how it can benefit your projects. What is django-simple-history? django-simple-history is a third-party Django package that provides version control for your models. It allows you to keep track of changes made to yo…

Read More

A 'No JS' Solution for Dynamic Search in Django

March 13, 2023 » Django Beats » [Archived Version]

In this post we take advantage of HTMX requests to do partial rendering for list views in Django. Django on Fly.io is pretty sweet! Check it out: you can be up and running on Fly.io in just minutes. Django is one of the most used server-side frameworks out there. It uses MTV (Model-Template-View) design pattern to build highly scalable and maintainable apps. Even though Django is a very versatile framework, one of the things that annoys me the most is the fact that - for a minimal Django setu…

Read More

Introducing Django ClearCache 🤠🧹💰 - allows to clear cache via admin UI or command line

March 12, 2023 » timonweb.com » [Archived Version]

I've been working with the Django cache recently. And while Django has exceptional caching capabilities, I was surprised to find out that it doesn't provide a simple way to manually clear a cache. I checked online and found a couple of clear cache packages for Django, but all of them … Read now

Read More

How to sort Django admin list column by a value from a related model

March 12, 2023 » timonweb.com » [Archived Version]

Here's a real-life case. On this blog, I have two models: Post and PostStats. As you may have already guessed, the first is for posts and the second is for statistics on each post, such as the number of views. Here is a simplified version of both models: models.py … Read now

Read More

How to remove 'rich-text' div from RichTextBlock template output in Wagtail CMS

March 12, 2023 » timonweb.com » [Archived Version]

When Wagtail renders RichTextBlock in a template, it by default wraps the contents of the block with the <div class="rich-text">. The resulting markup may look like this: <div class="rich-text"> <p>I'm a paragraph that's cold, so I'm wrapped up</p> </ … Read now

Read More

Installing Tailwind CSS v2 with Django-Tailwind

March 12, 2023 » timonweb.com » [Archived Version]

Recently, there have been loads of tutorials on how to integrate Tailwind CSS and Django. There are several different ways you could do this, from the simplistic "let's include a link from CDN" to "roll-up your sleeves and dive into the Webpack black hole." I've been working with Tailwind … Read now

Read More