Djangoで作成するTask管理アプリケーション
docker compose up
docker compose run web pip install -r requirements/requirements.txt
docker compose run web pip install -r requirements/requirements-dev.txt
docker compose run web python mysite/manage.py migrate
docker compose run web python mysite/manage.py createsuperuser
docker compose run web ruff format .
docker compose run web python mysite/manage.py shell_plus
docker compose run web python mysite/manage.py shell_plus --print-sql
docker compose run web python mysite/manage.py tailwind start
docker compose run web python mysite/manage.py dbshell
docker compose run web python mysite/manage.py dumpdata > db.json
docker compose run web python mysite/manage.py loaddata db.json
webコンテナへログイン後に以下のコマンドを実行する
cd mysite
pytest tasks/tests.py
web
docker compose exec web /bin/bash
db
docker compose exec db /bin/bash