To receive updates in your inbox, subscribe to my newsletter.

Handling webhooks using Django and ngrok

January 23, 2017 • 7 min read • django

In this article we’ll go over how to handle webhooks using Django, create a webhook in GitHub, and test the webhook on your local machine using ngrok. But first a brief primer on webhooks.

Mistakes I Made Writing a Django App (and How I Fixed Them)

January 16, 2017 • 12 min read • django

I recently announced the release of a project I’ve been working on for a few months. The project is called Lintly. It is a continuous Python code quality checking tool that lints your code when you push to GitHub. I won’t go into detail about what Lintly is here — you can read about that in the other blog post or go to lintly.com. Instead, I’d like to discuss my experience creating my first proper side project, some of the mistakes that I made writing it, and how I fixed the mistakes.

Django Lazy Tags

August 16, 2015 • 2 min read • django projects

I work on a web application called SideKick. SideKick has several dashboards depending on the type of person logged in. The “type of person” could be an employee of SideCars (the company where I work), the owner of a car dealership, or a dealer’s agent. Each dashboard has lots of handy widgets, as dashboards are wont to do. We contain the logic of each widget in a Django template tag so they can easily be resused. Here’s an example of a widget:

Fixtures in Django 1.7+

July 27, 2015 • 5 min read • django

Django had support for loading initial data into a database before Django 1.7. It was simple: put a file called initial_data.json in the fixtures folder of one of your Django apps and it will be loaded into your database each time the application starts up. It looked a little something like this:

Django Birthday

July 13, 2015 • 2 min read • django

It’s time that I finally start a blog. I’ve put it off for far too long. And after spending a weekend with some of the more important folks in the Django world, I suppose you could say I’ve found a bit of inspiration. Here goes nothing.