Saturday, January 20, 2018

Setting up Django on Google Cloud (basic server)

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@googlegroups.com.
To post to this group, send email to django-users@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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment