Umbara Project
You will need:
python^3.11(seepyproject.tomlfor full version)
When developing locally, we use:
editorconfigplugin (required)poetry(required)pycharm 2017+orvscode
Сheck your python version (should be 3.11)
- Install poetry
pip install poetry- Choose poetry python version 3.11
poetry env use /full/path/to/python- Download all dependencies to mod dev
poetry installIf you only need dependencies for production, then
poetry install --only main-
Before starting the project, you need to create an
.envfile in the directoryconfigand fill it with the.env.templatefile in the same directory -
Updating tables in a database
poetry run python manage.py migrate- Collect all statics in staticfiles
poetry run python manage.py collectstatic --noinput- Compile localization files
poetry run python manage.py compilemessages- Start django server
poetry run python manage.py runserverCreate user for django admin
Attention: This should be done after migrations
poetry run python manage.py createsuperuserRunning tests and coverage
poetry run pytestRunning Type Checker
poetry run mypy manage.py server
poetry run mypy testsRunning linter flake8
poetry run flake8 .Compiling localization
poetry run python manage.py compilemessages