Closed tbrlpld closed 10 months ago
Good catch! This is because /app
in the container doesn't end up on sys.path
when running django-admin
, the first entry ends up being /venv/bin/
instead.
We either need to set PYTHONPATH=/app
or update the docs to something like the following, which fixes it:
docker compose exec web python -m django runserver 0.0.0.0:8000
Found a bug? Please fill out the sections below. 👍
Issue Summary
I was following the steps in the contribution guidelines to get the local development setup running.
I was trying to use the approach with Docker Compose. Unfortunately I get the following error:
Steps to Reproduce
Follow setup steps in contribution guidelines: https://github.com/torchbox/django-pattern-library/blob/main/CONTRIBUTING.md#docker-compose
Technical details
All versions should be determined by the containers.