[Answer]-How to view the webpage in Django tutorial on Linode server

1👍

Just to make sure, are you trying to access the following URL in your browser (where the server ip address is 123.123.123.123)?

http://123.123.123.123:8000

Secondly, are you able to telnet to port 8000, to make sure you have correctly opened the port on the firewall.

0👍

I had this problem too and I wanted to clarify what I did for others who might get stuck:

First, remove the firewall for port 8000

sudo nano /etc/iptables.firewall.rules
-A INPUT -p tcp --dport 8000 -j ACCEPT

Second, reboot the linode

Third, restart the development server

cd /home/mycode/mysite
python manage.py runserver 123.123.123.123:8000

(where you use your ip)

👤Chris

Leave a comment