GitXplorerGitXplorer
r

lhd-build-cockroachdb

public
1 stars
1 forks
0 issues

Commits

List of commits on branch main.
Verified
bf78758969e58746c6b6c176a3c7b81d4d1d5264

Create README.md

rrobzwolf committed 4 years ago
Unverified
c1f5f6166d1e45472ab4c72043ec883471e703f0

Create Django project that connects to CockroachDB

rrobzwolf committed 4 years ago

README

The README file for this repository.

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