Development
Code is formatted with black, we use pylint to some extend, as well as isort. The projects includes integration and unit tests.
For up-to-date information see:
.gitlab-ci.yml
pyproject.toml
.coveragerc
.pylintrc
Ubuntu requirements
# For pillow (https://pillow.readthedocs.io/en/latest/installation.html#building-on-linux)
sudo apt install libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
libharfbuzz-dev libfribidi-dev libxcb1-dev
# for geostuff
sudo apt install gdal-bin postgresql-13-postgis-3
Add i18n strings to Frontend
- Make sure the string is encapsulated by
vue-i18n
-helper:$t('string')
- Copy string to
/config/frontend_i18n_strings.py
poetry run ./manage.py make_messages
Watch out! Don't use Django'smakemessages
.poetry run doit compilemessages