cookiecutter-django icon indicating copy to clipboard operation
cookiecutter-django copied to clipboard

Python: can't open file '/app/manage.py': [Errno 2] No such file or directory - Django - Docker Compose

Open Unknown9421 opened this issue 1 year ago • 1 comments

  • Cookiecutter version: 2.6.0
  • Template project url: https://github.com/cookiecutter/cookiecutter-django
  • Python version: 3.12.2-slim-bookworm
  • Operating System:

Description:

When I create a Django project using Cookiecutter and run docker compose right after the project is created (docker-compose -f .\local.yml up -d --build) (local.yml), the django container gives me an error when running (starting script) (Python: cannot open file '/app/ management.py').

I don't know exactly where the problem lies

Unknown9421 avatar Mar 28 '24 21:03 Unknown9421

Hey there! I was having the same issue on my windows machine, it didn't occur on another windows machine of mine. Therefore I guess it has something to do with the docker engine and/or wsl distro. I haven't figured it out yet but maybe this helps you to.

MelvinvanMelzen avatar Sep 16 '24 08:09 MelvinvanMelzen