Justin Thurman
Today I Learned

Today I Learned

Follow
homeAbout This Blog
Tag

Python

#python

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 the _ Variable in Python

Jan 6, 202288 views

When using Python in an interactive environment (i.e., the shell), the _ variable stores the result of your most recent operation. This is useful if,...

About the _ Variable in Python

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 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

About self.subTest

Aug 4, 2021313 views

self.subTest is a part of Django's TestCase class and is used as follows: def test_a_view(self): response = self.client.get(url) with...

About self.subTest