Giter VIP home page Giter VIP logo

Comments (8)

quroom avatar quroom commented on June 4, 2024

I faced same problem. I updated Use the WSL 2 based engine to True in docker setting > General
It works properly.

from cookiecutter-django.

foarsitter avatar foarsitter commented on June 4, 2024

How come that this project template does not contain the string management.py nor the file with that name?

from cookiecutter-django.

quroom avatar quroom commented on June 4, 2024

@foarsitter I didn't check it but when I used docker desktop without wsl2 option. It makes same error.

from cookiecutter-django.

foarsitter avatar foarsitter commented on June 4, 2024

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.

quroom avatar quroom commented on June 4, 2024

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.

Unknown9421 avatar Unknown9421 commented on June 4, 2024

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.

quroom avatar quroom commented on June 4, 2024

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.

github-actions avatar github-actions commented on June 4, 2024

Assuming the original issue was solved, it will be automatically closed now.

from cookiecutter-django.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.