#python
Read more stories on Hashnode
Articles with this tag
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...
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,...
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...
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...
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...