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

Nick Sarbicki nick.a.sarbicki at gmail.com
Fri Jan 26 02:11:10 EST 2018


There was a discussion on a slack channel a few days ago with someone who,
suspiciously, had the same name and problem. They'd tried to set up
firewall rules (not sure they worked) and was trying to get it running via
port 80 with gunicorn. Haven't heard anything else so assuming fixed.

On Thu, 25 Jan 2018, 19:31 Matt Wheeler, <m at funkyhat.org> wrote:

> On Sat, 20 Jan 2018 at 14:52 Samuel Muiruri <muiruri.samuel at 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
>>
> 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
> http://funkyh.at
> _______________________________________________
> python-uk mailing list
> python-uk at 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/20180126/469aedc3/attachment.html>


More information about the python-uk mailing list