CNA Charting Application
Prerequisites
- Python 3.9.5
- Pipenv
- Install direnv
- In the project root create a file
.envrcwith the following two lines: --export SECRET_KEY="longrandomstringofcharacters"--export DEBUG=True
Python environment and packages:
- In the project root run:
pipenv shellto get into the python virtualenvironment - Run:
pipenv installto install dependencies (e.g. Django)
Setting up the database and dev-server:
- Run:
python manage.py makemigrationsto create database migrations - Run:
python manage.py migrateto create the database with migration schemas - Run:
python manage.py createsuperuserand follow prompts to create a superuser in the database.
Running the server:
- Run:
python manage.py runserverand navigate to localhost
Running the server with livereload for Django template files:
- Run:
python manage.py livereloadin one terminal process - Run:
python manage.py runserverin another terminal process and navigate to localhost
Languages
JavaScript
92.2%
Python
6%
HTML
1.4%
CSS
0.4%