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

Nick Sarbicki nick.a.sarbicki at gmail.com
Sat Jan 20 11:58:12 EST 2018


Hi Samuel,

You probably haven't opened access to port 8000 to the public

Try run server on port 80.

Nick.

On Sat, 20 Jan 2018, 14:53 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
> " 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.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscribe at googlegroups.com.
> To post to this group, send email to django-users at googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJZFZXrw9O-x8aV6NynHN9iEiLd%3DMZU8OpHGUeEmHXUSH9wAkw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJZFZXrw9O-x8aV6NynHN9iEiLd%3DMZU8OpHGUeEmHXUSH9wAkw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-uk/attachments/20180120/0acc20ca/attachment.html>


More information about the python-uk mailing list