[python-uk] Setting up Django on Google Cloud (basic server)

Matt Wheeler m at funkyhat.org
Thu Jan 25 14:30:03 EST 2018

On Sat, 20 Jan 2018 at 14:52 Samuel Muiruri <muiruri.samuel at gmail.com>

> 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" 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
> should bring the site or something but it
> fails to connect i get "
> This site can’t be reached
Have you checked the firewall rules?
I would suggest adding a tag to your Instance and then creating a firewall
rule for the same tag which allows port 8000 TCP ingress.

See https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules

Matt Wheeler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-uk/attachments/20180125/0c94e175/attachment.html>

More information about the python-uk mailing list