Installing required packages
The following command will install Python3, pip package installer, Nginx, and PostgreSQL on the Ubuntu machine,
# sudo apt install python3 python3-pip nginx postgresql postgresql-contrib
How to install Django with NGINX, Gunicorn, and PostgreSQL on Ubuntu?
This article describes how to install and configure Django with PostgreSQL, Gunicorn, and Nginx on your Ubuntu machine. First, let’s look at an overview of all the tools we use. Django is a robust, free, open-source, Python-based web framework that follows the MVT (Model-Template-View) architectural pattern. Though it includes an integrated development server for testing projects on your local system, however, using the development server for production is not recommended as it is not intended for this purpose. For this reason, we need a more robust and secure web server like Gunicorn that connects to Python applications via a WSGI interface. Nginx is a web server used as a reverse proxy with Gunicorn.