Comments (8)
I faced same problem. I updated Use the WSL 2 based engine to True in docker setting > General
It works properly.
from cookiecutter-django.
How come that this project template does not contain the string management.py
nor the file with that name?
from cookiecutter-django.
@foarsitter I didn't check it but when I used docker desktop without wsl2 option. It makes same error.
from cookiecutter-django.
Using this template cannot result in that error as long as this template does not provide that file nor that string. However, it does provide a file called manage.py. So can you check your error again?
from cookiecutter-django.
Using this template cannot result in that error as long as this template does not provide that file nor that string. However, it does provide a file called manage.py. So can you check your error again?
My error was about manage.py blabla. I will check it asap and leave logs soon.
from cookiecutter-django.
I don't know where the problem specifically is, but everything seemed fine after I reinstalled the docker desktop. I have found a temporary solution to this problem, although I have not investigated the specific cause.
In local.yml or product.yml, in service: (django)
-
drive: Currently it is configured as (.:/app:z), please change it to (./app). Delete z and ":". I hope it helps anyone who is having the same problem.
django: &django build: context: . dockerfile: ./compose/local/django/Dockerfile image: novel_local_django container_name: novel_local_django dependent: - postgres - redo - mailbox mass: - .:/app:z env_file: - ./.envs/.local/.django - ./.envs/.local/.postgres gate: - '8000:8000' command: /start
Change into:
django: &django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: novellaire_local_django
container_name: novellaire_local_django
depends_on:
- postgres
- redis
- mailpit
volumes:
- ./app
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- '8000:8000'
command: /start
from cookiecutter-django.
umm.. In my case, when I use hyper-v for docker engine in docker desktop windows version, /app
folder is always empty. I am not sure what happens.
from cookiecutter-django.
Assuming the original issue was solved, it will be automatically closed now.
from cookiecutter-django.
Related Issues (20)
- S3 putObject fails when starting up project: What permissions are required.? HOT 3
- Selecting Whitenoise and AWS as cloud provider overrides STATIC_URL in a way that assumes Collectfast HOT 3
- Adopt Collectfasta HOT 2
- Drop support for runserver_plus & django_extensions HOT 2
- Python: can't open file '/app/manage.py': [Errno 2] No such file or directory - Django - Docker Compose
- createdb and migrate using conda
- ruff hook fails with F405 issue in config/settings/production.py HOT 1
- Why doesn't add RunServerPlus options for reload in windows when using docker? HOT 3
- Add `compose` to the names of docker compose files HOT 3
- Sometimes template code changes not detected in windows wls ubuntu22.04. HOT 4
- Discord invite expired HOT 1
- ValueError: Another profiling tool is already active HOT 3
- Add cloudflare to cloud provider options HOT 5
- PostgreSQL - connection failed: FATAL: remaining connection slots are reserved for non-replication superuser connections HOT 29
- Migrate gulpfile to ESM HOT 3
- {"detail":"Not Found"} at http://127.0.0.1:8000 immediately HOT 1
- CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine whether broker connection retries are made during startup in Celery 6.0 and above
- `uvicorn.workers` is deprecated HOT 1
- Optimize Recursive chown Execution Time on WORKDIR with Many Files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookiecutter-django.