How to Start a Containerized Django Project

Zhao Li
Analytics Vidhya
Published in
26 min readJun 9, 2019

--

Problem

You want to start a Django project that runs inside containers, but are not sure how to take that first step.

Solution

This article will go through starting a new containerized Django application. It consists of these high level steps:

  1. Set up a Python environment inside a container
  2. Use the Django library to scaffold a new project
  3. Bring Up the Vanilla Application
  4. Create the application’s first resource

At the end of this tutorial, your application will look like this:

Application Screenshot

If you want to take a deeper dive into the end state of the code that makes this application work (rather than reading about the steps to get there), then you might want to read through this article:

Front Matter

The code that follows this tutorial can be found here:

--

--