This is a short tutorial on using Django with CockroachDB. This tutorial is intended to be a quick ramp
up on CockroachDB with Django, in case you're searching for a proper Django tutorial, this is not it.
At the time of writing, django-cockroachdb library is available in two versions, (2 and 3). This post
focuses on version 2 specifically. This tutorial is based on the Digital Ocean tutorial using Django with
PostgreSQL. I am going to highlight the steps where this tutorial differs from the original. For everything
else, we will assume the tutorial is followed as is. Since we’re going to need RBAC features of
CockroachDB, we will require an enterprise license, feel free to request a trial or try this tutorial with
cockroach demo environment where enterprise features are enabled for 60 minutes, which is plenty to
complete this tutorial.