gideon maina
virtualenv venv
source venv/bin/activate
pip install git+https://github.com/opendata-stuttgart/feinstaub-api
pip install .
python manage.py migrate
python manage.py runserver
docker-compose build
or make build
docker-compose up -d
or make up
make build
make up
- run docker and detachmake log
- tail logsmake test
- run testmake migrate
- migrate databasemake createsuperuser
- create a super user for adminmake compilescss
make enter
- enter docker shellmake django
- enter docker django shelldocker-compose
is strictly for development and testing purposes. The Dockerfile is written for production since dokku is being used and it will look for Dockerfile.pytest --pylama
docker-compose run api pytest --pylama
tasks.py
and CELERY_BEAT_SCHEDULE
in settings.py
.contrib/start.sh
:SENSORSAFRICA_RABBITMQ_URL
contrib/start.sh
:SENSORSAFRICA_CELERY_SLACK_WEBHOOK
. The default options are used:SENSORSAFRICA_SENTRY_DSN
.sensors.AFRICA-api
and opendata-stuttgart/feinstaub-api
migration files by running python manage.py makemigrations
command before creating a PR.