Install python with pyenv:
brew install pyenv
Install python 3.12.2:
pyenv install 3.12.2
# set as global version
pyenv global 3.12.2
Install django:
pip install django
Install pipx for isolated python apps Install poetry for managing virtual environments:
pipx install poetry
Create a virtual environment with poetry:
poetry shell
Start docker compose db container for development:
docker compose up -d
Build docker image:
docker compose build
Install pre-commit hook:
pre-commit install
To run tailwindcss styling server:
poetry run python manage.py tailwind start
Build production minified css:
poetry run python manage.py tailwind build