Django in Ubuntu 18.04 on Azure VM gunicorn Can't connect to ('0.0.0.0', 80)

Django in Ubuntu 18.04 on Azure VM gunicorn Can't connect to ('0.0.0.0', 80)

I'm trying to deploy my Django application to Azure virtual machine with Ubuntu 18.04.

I'm trying to deploy my Django application to Azure virtual machine with Ubuntu 18.04.

  1. I have set up the VM and connect to it via SSH.
  2. Then run the update and upgrade command
  3. Setup Python and Virtualenvironment
  4. Upload my code and activate the environment
  5. Allow the port 8000 using sudo ufw allow 8000 for testing
  6. After installing all the requirements, when I run the command:
python manage.py runserver 0.0.0.0:8000

The application runs, but when I open the URL as: :8000/

It doesn't return anything not any errors in the console

Update: It's just fixed by manually adding the port 8000 in azure portal under Inbound port rules. But: when I try to run it via gunicorn as:
gunicorn --pythonpath PROJECT PROJECT.wsgi:application --log-file - --bind 0.0.0.0:80

it returns another error as below:

[30007] [ERROR] Can't connect to ('0.0.0.0', 80)

What can be wrong here?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Python Django Tutorial | Django Course

🔥Intellipaat Django course: https://intellipaat.com/python-django-training/ 👉This Python Django tutorial will help you learn what is django web development &...

How To Install the Django Web Framework on Ubuntu 18.04

In this guide, you will get Django up and running on an Ubuntu 18.04 server. After installation, you will start a new project to use as the basis for your site.

How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 16.04

In this guide, we will demonstrate how to install and configure some components on Ubuntu 16.04 to support and serve Django applications. We will be setting up a PostgreSQL database instead of using the default SQLite database. We will configure the Gunicorn application server to interface with our applications. We will then set up Nginx to reverse proxy to Gunicorn, giving us access to its security and performance features to serve our apps.