Alternative: Python Flask demo reference project

Pre-built CircleCI Docker images

We recommend using a CircleCI pre-built image that comes pre-installed with tools that are useful in a CI environment. You can select the Python version you need from Docker Hub: https://hub.docker.com/r/circleci/python/. The demo project uses an official CircleCI image.

Database images for use as a secondary ‘service’ container are also available.

Build the demo Django project yourself

A good way to start using CircleCI is to build a project yourself. Here’s how to build the demo project with your own account:

Fork the project on GitHub to your own account

Go to the Add Projects page in CircleCI and click the Build Project button next to the project you just forked

To make changes you can edit the .circleci/config.yml file and make a commit. When you push a commit to GitHub, CircleCI will build and test the project.

Config Walkthrough

We always start with the version:

version: 2

Next, we have a jobs key. Each job represents a phase in your Build-Test-Deploy (BTD) process. Our sample app only needs a build job, so everything else is going to live under that key.

We need to specify a working directory container images for this build in docker section: