This simple application follows the "hello, world" tutorial.
-
Set up virtual environment
python -m venv env env\Scripts\activate (Windows) source env/bin/activate (Mac)
-
Install dependencies (django etc)
python -m pip install django pip install psycopg2-binary
Note: Might need to upgrade pip if getting error installing psycopg2-binary
python -m pip install --upgrade pip
Then, continue installing depencencies:
python -m pip install django-cockroachdb pip install python-dotenv
-
Start application
python manage.py runserver 0.0.0.0:8000
or another port if 8000 is used by another application.