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

open-contracting-archive/covid-19-procurement-explorer-admin

Repository files navigation

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