cookiecutter / cookiecutter-django

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
https://cookiecutter-django.readthedocs.io
BSD 3-Clause "New" or "Revised" License
12.15k stars 2.91k forks source link

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

Open Unknown9421 opened 7 months ago

Unknown9421 commented 7 months ago

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

MelvinvanMelzen commented 2 months ago

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.