{"id":5246,"date":"2016-11-16T03:29:34","date_gmt":"2016-11-16T03:29:34","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5246"},"modified":"2016-11-16T03:29:34","modified_gmt":"2016-11-16T03:29:34","slug":"connecting-django-app-digitalocean","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/connecting-django-app-digitalocean\/","title":{"rendered":"Connecting to a Django app on DigitalOcean"},"content":{"rendered":"<p>If you just run a Django app on Digital Ocean, it will let you connect from within the VM, but not outside. E.g.:<\/p>\n<pre lang=\"bash\">\npython manage.py runserver\n<\/pre>\n<p>By default this seems to listen on 127.0.0.1:8000. It is bound to the local network interface, so it doesn&#8217;t even see traffic from outside. The problem actually isn&#8217;t a firewall (this doesn&#8217;t seem to get configured on Ubuntu by default)<\/p>\n<p>To fix this, run it this way instead:<\/p>\n<pre lang=\"bash\">\npython manage.py runserver 0.0.0.0:8000\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Changing the network adapter that a Python \/ Django App listens on<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[172,447],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5246"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=5246"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5246\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}