Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Latest commit

 

History

History
57 lines (38 loc) · 837 Bytes

File metadata and controls

57 lines (38 loc) · 837 Bytes

COVID-19 Contract Explorer: Admin backend

Getting started

Install development dependencies:

pip install pip-tools
pip-sync requirements_dev.txt

Set up the git pre-commit hook:

pre-commit install

Initialize the database:

createdb covid19_test
./manage.py migrate

Create a superuser:

./manage.py createsuperuser

Load test data:

./manage.py loaddata country redflag equitycategory equitykeywords

Retrieve remote data:

./manage.py fetch_covid_active_cases

Develop

Run a development server:

./manage.py runserver

To add, remove or upgrade a requirement, follow these instructions.

Test

./manage.py test --keepdb