Question

Cannot Test The App

Please I have followed How To Set Up Django with Postgres on how to deploy Django remotely. I’ve been able to follow the guide accordingly(well not fully accordingly because I use git to pull my code) and running the server like so python manage.py runserver 0.0.0.0:8000 for testing it ran successfully after but on testing http://157.230.53.115:8000/ there seems to be an error as I keep receiving connection time out. Please help me look into this as I’ve really researched on this since but nothing so far. Thanks in anticipation.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

There are a few things that I could suggest here:

  • Make sure that port 8000 is open for incoming TCP traffic via your firewall. You could check that with:
ufw status
  • If port 8000 is not open then you would have to open it with:
ufw allow 8000

After that try accessing the site again.

  • If this is still not working, make sure that your app is actually listening on port 8000:
netstat -plant | grep 8000
```

* Another thing that I could suggest is checking your logs for any errors

Hope that this helps!
Regards,
Bobby