'I am having issue with django web application deployment on ubuntu VPS. The issue is that the server do not give any response even on 0.0.0.0:8000
While deploying the Django website everything goes right but when I run the command python manage.py runserver 0.0.0.0:8000 then the server starts successfully but then if I try the IP:8000 on the browser, it shows the site can't be reached and even no computation executes on the server terminal of Django. I have executed
sudo ufw allow 8000
but still, the error is the same.
I have tried apache and nginx but got the same output for both.
I am following this guide
also tried:
I am using VPS having 1 core, 0.5 GB RAM, Data transfer rate:400 Mbps, I am wondering if Django's requirements for running the application are not met.
Solution 1:[1]
I had the same issue after going through this tutorial. It turned out that ufw simply wasn't running by default. Check by ufw status, start with sudo ufw enable
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Benjamin |
