Or it could be the allowed hosts in the settings file. I was using vagrant and even though I had forwarded the ports from the guest machine, I also needed to add the ip of the guest server into my hosts. I then connected via the ip of the vagrant box rather than the localhost and the forwarded port as I would have expected.
On 23 Jan 2018 17:03, <python-uk-requ...@python.org> wrote: Send python-uk mailing list submissions to python-uk@python.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.python.org/mailman/listinfo/python-uk or, via email, send a message with subject or body 'help' to python-uk-requ...@python.org You can reach the person managing the list at python-uk-ow...@python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of python-uk digest..." Today's Topics: 1. Re: Setting up Django on Google Cloud (basic server) (Steve Holden) ---------------------------------------------------------------------- Message: 1 Date: Tue, 23 Jan 2018 13:49:04 +0000 From: Steve Holden <st...@holdenweb.com> To: UK Python Users <python-uk@python.org> Subject: Re: [python-uk] Setting up Django on Google Cloud (basic server) Message-ID: <camofdrbsykv_njwemzsn3z1b1jw0oc1wopm5gszxwk3og17...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" >From your description it sounds like the IP address of your host is not delivering packets to your VM, which should be listening on all its interfaces. Perhaps a problem in your virtual's interface configuration? S Steve Holden On Sat, Jan 20, 2018 at 2:52 PM, Samuel Muiruri <muiruri.sam...@gmail.com> wrote: > I had this issue before with AWS i remember it was just as stressful then > and actually can't remember what actually fixed it. I basically have a > clean Ubuntu VM which I followed this guide https://www. > digitalocean.com/community/tutorials/how-to-set-up- > django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 step by step on > creating and hosting django on a site. > > Every step worked smoothly until this point when I need to run the command > "python manage.py runserver 0.0.0.0:8000" which starts the service (shown > on the attached screenshot) (also is the google cloud page showing the > given external ip) according to this with the server waiting visiting > http://35.227.49.155:8000/ should bring the site or something but it > fails to connect i get " > This site can?t be reached > " message. > > For now I'm taking a break hoping I'll come up with something, also hope > someone here who might have gone through the same or is a seasoned web dev > might also help too. > > -- > > Best Regards, > > Samuel Muiruri. > > Senior Developer @ Revorta. > > > _______________________________________________ > python-uk mailing list > python-uk@python.org > https://mail.python.org/mailman/listinfo/python-uk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-uk/ attachments/20180123/d0f17604/attachment-0001.html> ------------------------------ Subject: Digest Footer _______________________________________________ python-uk mailing list python-uk@python.org https://mail.python.org/mailman/listinfo/python-uk ------------------------------ End of python-uk Digest, Vol 173, Issue 9 *****************************************
_______________________________________________ python-uk mailing list python-uk@python.org https://mail.python.org/mailman/listinfo/python-uk