Sales Ended

Django and Docker with Josue Balandrano Coronel

Event Information

Share this event

Date and Time

Event description

Description

## Django and Docker

Docker implements operating-system-level virtualization, otherwise known as containerization.
Containers are great for development and production because they allow for easier reproduce-ability.
In this class you will learn how to use docker to run a Django web application as well as the common
local development and production setups of a web application and
some tips to use Django and Docker together.


### Pre-requisites:

1. Python 2.7+, preferred Python 3.x.
2. Install Docker (Community Edition CE or Enterprise is OK):
1. Mac: https://docs.docker.com/docker-for-mac/install/
2. Linux:
1. CentOS: https://docs.docker.com/install/linux/docker-ce/centos/
2. Debian: https://docs.docker.com/install/linux/docker-ce/centos/
3. Fedora: https://docs.docker.com/install/linux/docker-ce/fedora/
4. Ubuntu: https://docs.docker.com/install/linux/docker-ce/ubuntu/
5. Binaries: https://docs.docker.com/install/linux/docker-ce/binaries/
3. Windows: https://docs.docker.com/docker-for-windows/install/
3. Install docker-compose:
1. Mac: If you followed the link above docker-compose should already be installed in your system.
2. Linux: https://github.com/docker/compose/releases/tag/1.21.2
3. Windows: If you followed the link above docker-compose should already be installed in your system.


### Outline:

1. Docker
1. Introduction to Docker: What is it and overview of how it works.
2. Introduction to docker-compose: What is it and how it works.
3. Examples on how to use Docker and docker-compose: Running different services.
2. Django application setup
1. Local setup: development, logging, testing, debugging
2. Production setup: HTTP Server (Nginx), WSGI server (uwsgi/gunicorn), Application server (Django)
3. Why different setups?
4. Why these specific setups?
3. Putting it all together
1. Pros and cons of the HTTP server, WSGI server, Application server running locally and in containers.
2. Moving a Django application into containers (containerization).
3. Local setup: development, logging, testing, debugging
4. Production setup: HTTP Server (Nginx), WSGI server (uwsgi/gunicorn), Application server (Django)
5. Tips on deploying to staging/production.
4. Recommendations
1. Local docker management.
2. Container management locally and in remote servers.
3. Future Work.


See this event in your time zone here

Help chat here

Youtube Live link here

All PyLadies Remote teachers and students are expected to behave in accordance with the PyLadies Code of Conduct.

Date and Time

Save This Event

Event Saved