Reading-Notes
Code Fellows Python 401
Read: 31 - Django REST Framework & Docker
Beginner’s Guide to Docker
- used to isolate and run entire applications
- Linux containers, a type of virtualization
- Docker is a way to implement Linux containers
- virtual environments can only isolate Python packages
- Containers are a lightweight alternative to Virtual Machines
- image is a snapshot in time of what a project contains
- container is a running instance of the image
docker-compose.ymlcontrols how to run the container
Django for APIs - Library Website
Django creates websites containing webpages, while Django REST Framework creates web APIs which are a collection of URL endpoints containing available HTTP verbs that return JSON
traditional Django project set up:
- creating a new project
- adding a new app
- updating models
- views
- urls
- templates