A web app which monitors, displays and deletes CSPs and linked resources. It tries to identify left over instances and also performs some cleanup task. For instance it deletes old custom uploaded images. Behavior differs per CSP.
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
First copy the pwc.ini to /etc
cp templates/pwc.ini /etc/pwc.ini
Open and edit vault[user] and vault[password]. Those are required. Add notify[to] and notify.namespace.qac[to] in case you want to receive notifications.
virtualenv env
source env/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser --email admin@example.com --username admin
python manage.py collectstatic
python manage.py runserver
Running codecov locally require installation of pytest pytest-cov codecov
.
Then you can run it with
BROWSER=$(xdg-settings get default-web-browser)
pytest -v --cov=./ --cov-report=html && $BROWSER htmlcov/index.html
and explore the results in your browser
To simplify problem investigation pcw has two django commands :
this allows triggering core functionality without web UI. It is highly recommended to use dry_run = True
in pcw.ini
in
such cases.