Some of the tools and workflows I use for local Django application development

Last Updated on September 16, 2020

This article will be an overview of some of the tools and workflows I use when developing Django applications locally on my computer.

I recently had a few different projects each with slightly different local settings, monitoring tools and utilities, and I had trouble keeping track of them across different projects. This motivated me to combine all of my favorite local development tools in one project that I can clone to quickly get setup with a new project.

tl;dr

Here's a quick list of the tools I'll talk about:

Before digging inot to these tools, let's back up and think about some of the goals we should have for local development environments for software projects.

Goals for development environments

Here are some of the goals we should consider, ordered by priority:

  1. local development should emulate our production environment as much as possible and as much as is practical
  2. starting a local development environment should be quick and easy and should require little to no mental load
  3. The local development environment should have the same dependencies and settings that are used in production, and any additional dependecnies or settings should be clearly separated
  4. code changes made while the application runs locally should be reflected immediately as code changes are saved

Example repo

I'll be referencing this git repository throughout this article:

https://gitlab.com/verbose-equals-true/digital-ocean-docker-swarm

Here are a few things to know about this repo:

  • It is a dummy project that I'm mostly using to get more familiar with celery and to debug an issue I'm having with scheduled celery tasks
  • There is currently no interaction between the backend Django application and the frontend Vue.js/Quasar application


Join my mailing list to get updated whenever I publish a new article.

Thanks for checking out my site!
© 2021 Brian Caffey