Showing 1 to 6 of 43 blog posts by Dan Poirier.
-
How to Use Celery for Scheduling Tasks
There are multiple ways to schedule tasks in your Django app, but there are some advantages to using Celery. It’s supported, scales well, and works nicely with Django. Given it... Read more
August 11, 2021 -
How to Simplify Django Migrations and Deployment
When removing fields from Django models, or adding non-nullable fields, it can be hard to avoid a mismatch between code running on some servers and the database in use. By usin... Read more
May 25, 2021 -
How Mock Can Improve Your Unit Tests: Part 2
In Part 1 of this blog series, we started looking at how we can use mocking to improve our unit tests. We'll expand on that in this post. Mock an Attribute Another common case... Read more
April 5, 2021 -
How Mock Can Improve Your Unit Tests: Part 1
We've written in the past about the importance of unit tests and how to write better ones: Culture of Unit Testing, Subtests are the Best. Mocking is a little tricky to learn t... Read more
March 29, 2021 -
The Magic of Single Sign-On
I remember being really impressed the first time I encountered single sign-on (SSO), in which I could access multiple websites after just logging in once. But I was even more i... Read more
January 29, 2021 -
My Python Development Environment
This is how to set up the One True Development Environment for Python. Haha, just kidding, there is no such thing. Here's one way to do it that works for me, and an attempt to ... Read more
January 14, 2021