Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

robzwolf/lhd-build-cockroachdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lhd-build-cockroachdb

This simple application follows the hello world tutorial available at: https://www.cockroachlabs.com/docs/cockroachcloud/build-a-python-app-with-cockroachdb-django.html

Quick Start

  1. Set up virtual environment

    python3 -m venv env
    source env/bin/activate
    
  2. Install dependencies (django etc)

    python -m pip install django
    pip install psycopg2-binary
    python -m pip install django-cockroachdb
    

    Note: If you have any errors when installing psycopg2-binary, upgrade pip to 20.3.3 or newer:

    python -m pip install --upgrade pip
    
  3. Start application

    python manage.py runserver 0.0.0.0:8000
    

Releases

No releases published

Packages

No packages published

Languages