Skip to Content
Django 3 Web Development Cookbook - Fourth Edition
book

Django 3 Web Development Cookbook - Fourth Edition

by Aidas Bendoraitis, Jake Kronika
March 2020
Intermediate to advanced
608 pages
17h 17m
English
Packt Publishing
Content preview from Django 3 Web Development Cookbook - Fourth Edition

There's more...

You can destroy Docker containers with the docker-compose down command and rebuild them with your build script:

$ docker-compose down$ ./build_dev.sh

If something is not working as expected, you can inspect the logs with the docker-compose logs command:

$ docker-compose logs nginx$ docker-compose logs gunicorn$ docker-compose logs db

To connect to any of the containers via SSH, you should use one of the following:

$ docker exec -it django_docker_gunicorn_1 bash$ docker exec -it django_docker_nginx_1 bash$ docker exec -it django_docker_db_1 bash

You can copy files and directories to and from volumes on Docker containers using the docker cp command:

$ docker cp ~/avatar.png django_docker_gunicorn_1:/home/myproject/media/$ docker ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Django 2 Web Development Cookbook - Third Edition

Django 2 Web Development Cookbook - Third Edition

Jake Kronika, Aidas Bendoraitis

Publisher Resources

ISBN: 9781838987428Supplemental Content