Django

close up photo of ethernet cables on network switch

Deploying a Django + Nginx application to a VPS with ansible

The article explains the steps for deploying a Django + Nginx application on an AWS Lightsail Virtual Private Server (VPS) with Docker and Ansible automation. This article will guide you through setting up a VPS instance, domain linking, server configuration with Ansible, securing the server, setting up SSL/TLS certificates, and finally, deploying the application. As part of the process, you’ll see how to run setup and deployment playbooks on a server, culminating in a live Django + Nginx project with HTTPS functionality.

Setting up Django for Deployment: Gunicorn

Web Servers like Apache or NGINX are great for handling HTTP requests. Unfortunately,they typically cannot communicate with Python applications directly. That is where gunicorn comes in.

Learn how to install, configure and run gunicorn with Django in this article.