This question is very similar to (but is not the same because I am running on the google cloud, which I suspect may be cause of the issue):
- Django runserver does not respond when opened in the browser
- Django manage.py runserver is not working
I am trying to set up an api running on a VM-instance on the google cloud platform. So far I got nginx working (when I go to the ip address it greats me with a welcome message). When I run:
python3 manage.py runserver 0.0.0.0:8000
I get the following output:
Performing system checks...
System check identified no issues (0 silenced).
February 06, 2019 - 09:27:13
Django version 2.1.5, using settings 'my_api.settings.development'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Which seems good, but when I go to any of the following pages (all of which I've listed under allowed_hosts):
- 0.0.0.0:8000
- 127.0.0.1:8000
- < my ip address>:8000
The page won't load.
I´ve tried checking which ports are used using
netstat
And I've killed all programs using this port after which I restarted my program, but to no avail.
At this point, I've fixed everything suggested in other posts and I'm out of ideas. What would be the next step in finding/solving the cause of my internet page not loading?