Justin Thurman
Today I Learned

Today I Learned

Follow
homeAbout This Blog
Tag

Django

#django

More content

Read more stories on Hashnode


Articles with this tag

How to add context to Celery WorkerLostError logs

Feb 19, 2022356 views

For a while now, we've had semi-frequent WorkerLostErrors on one of our Celery queues. These can happen for a few reasons, but one of the most common...

How to add context to Celery WorkerLostError logs

About CaptureQueriesContext

Jan 18, 2022374 views

If you ever need to access the raw SQL executed during any unit test, the CaptureQueriesContext context manager can help. It's very simple: from...

About CaptureQueriesContext

About tree traversal options in Django, and how I evaluate third-party libraries

Nov 28, 202160 views

Background I'm working on a side project for my wife, and the data structure for this project involves models with a recursive foreign key...

About tree traversal options in Django, and how I evaluate third-party libraries

About Modifying Request in Middleware

Oct 8, 202146 views

Today, I spent a while trying to debug a slow API endpoint. As part of the initial exploratory process, I just wanted to time how long the entire...

About Modifying Request in Middleware

About Finite-State Machines in Django

Aug 7, 2021418 views

Finite-state machines (FSMs) are awesome. I was first introduced to the concept through the XState JS package. This package is, obviously, geared...

About Finite-State Machines in Django

About Postponed Evaluation of Annotations

Aug 5, 2021291 views

Let's say you're working on a Django project, and you have a model with a custom create method on the manager: # managers.py class MyManager: def...

About Postponed Evaluation of Annotations