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 runserver for testing it ran successfully after but on testing 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.


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!