Summary
In the previous chapter, we were able to run Python in complete isolation from the operating system, including its dependencies. It wasn’t much different from creating a virtual environment. But in this iteration, we’ve taken it up a notch by incorporating all the external software into Django. Containers have become the backbone of the site, incorporating elements as important as databases and the web server itself. What’s more, integration with Django is not merely decorative, as the most critical configurations originate in the Docker environment variables that directly affect settings.py
. Right now, if we wanted to, we could deploy the site on any server that has Docker installed with just one command. We can find harmony and architecture in every line of Docker.
We are now ready to dive into asynchrony, WebSockets, channels, and real-time requests.