Thursday, September 8, 2022

Re: Hierarchy for Docker Files / "docker-compose up" issue — Question re: Chapter 2 of Django for Professionals

  Hello Stephanie,

All the last six files can stay where they are (no problem). Observer if the commands in the Dockerfile file are copying the module(django_project) into the image. After you start the containner(docker-compose up) you could acess it with "docker exec -it <name container> sh".

How is your dockerfile and your .dockerignore?

Stephanie Goulet <stephanie.a.goulet@gmail.com> escreveu no dia quinta, 8/09/2022 à(s) 14:27:
Hi all, any help would be appreciated:

Question:
  1. In the below screenshot of VSC, are the last six files all in the right hierarchical place? In other words, should any of those be within either the "django_project" or "pages" folders? If so, which files should go in which level folder?


Context:
  • I'm new to this 
  • To learn, I went through the book Django for Beginners and am now working through Django for Professionals
  • I'm on page 29 of Chapter 2: Docker Hello, World! in the Django for Professionals PDF
  • It seems like I successfully did the "docker build ." command, but I'm running into trouble with the "docker-compose up" command. It's giving some traceback errors and a line that says "ModuleNotFoundError: No module named 'django_project'" which is why I suspect that I may have saved some of the files in the wrong place (maybe all of them belong in the 'django_project' folder?).
Thank you in advance!

Best,
Stephanie

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2e1368cf-cee9-4aac-a74b-d727094b4f36n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA-J3id6ZLCyONOqNx2Tdbyv3vR_g%3DBpYt-PEzTnGKqbV%2BTJTQ%40mail.gmail.com.

No comments:

Post a Comment