ZiP website.
- Docker installed
- Docker Compose installed (if not included with Docker)
To start the application, simply run:
docker compose upThis project checks python formatting in a GitHub Action on push to main.
- make sure you have
blackandisortinstalled (or install fromzip/requirements.txtin a virtual env) - run
./check_formatting.shto run the checks - you can run
./check_formatting.sh --fixto automatically format files
- open the
code zip.code-workspaceinstead of the root directory (code .) - install the recommended extensions
- there should be a prompt to install recommended extensions or
- open the command palette and type
Show Recommended Extensions
- automatic format on save should now work
- Setup a python virtual env with the same python version as the docker container
- run
pur -r requirements.txtto update the file with all dependencies at their latest versions - run
pip install -r requirements.txtto install the new versions from the file- if there are conflicting dependencies, check the output and selectively downgrade specific dependencies to earlier versions until it successfully installs
- When it all succeeds rebuild the docker container and test the app
- Run
python manage.py makemessages_nofuzzy -a --no-obsoleteinstead of the default django makemessages command. The default fuzzy matcher is too eager and sometimes breaks some unrelated translations. - If changes you make to translations are not visible, run
python manage.py compilemessagesand restart the development server