RL

blog

I occasionally write about software development, projects I'm working on, or what I'm reflectin on.

Safely Cancel Your Celery Tasks

I've been working with Celery for a long time and these days it's a pretty stable part of my stack.  There's a lot of good articles out there on how and why you'd want to use …

Setting Up Multiple Databases With Django

Working with multiple databases in Django can seem a bit overwhelming at first but setting it up properly is straight forward and really effective.  I'm working on a project where I need&…

Just Keep Shipping

The past few weeks have been a bit of a struggle.  I've been working on a handful of different features for two of our apps, EZ Importer and EZ Fulfill.  I had 3 features I was plann…

Building a Custom Django Admin Form

I recently needed an easy way to bulk upload data to one of my database models from the Django admin.  I didn't want this functionality accessible to users so it didn't make sens…

Debugging Django Management Commands with strace

This past week I ran into an issue where a django management command running on a cron began to hang.   I began to rollback changes to the environment, downgrading python versions, downg…

Django Constraints

As of Django 2.2, you can add database constraints to your models.  I find database constraints extremely valuable and one of those few features that Django really needed.

This blog…

Custom Foreign Key Constraints with Django

The current project I'm working on has database tables that are over 2 million records which I'm populating from an external source. The external source provides a postgres dump file to he…