Rezha Julio

Hi!
My name is Rezha Julio
I am a chemist graduate from Bandung Institute of Technology. Currently working as Data Engineer at Traveloka.
You can reach me by email:

contact@rezhajulio.id

, @ Q Q

Powered by Hugo

filter by tags

Vagrant's hosted Django can't be accessed

time to read 1 min | 83 words

A few days ago I am starting to use vagrant to develop our Django project at Polatic. After I finished installing project’s dependencies and run python manage.py runserver, I can’t accessed 127.0.0.1:8000 from my browser even after I enabled vagrant’s port forwarding.

The thing is, django’s default settings will listen at 127.0.0.1 which can only be accessed from vagrant. So we need django to listen to all network interfaces by binding it to 0.0.0.0. Running python manage.py runserver 0.0.0.0:8000 will fix this problem.

RECENT SERIES

  1. java 101 (13):
    Apr 29, 2017 - Translating Scanner tokens into primitive types
  2. python data structure (5):
    May 03, 2017 - Enhance your tuples
  3. python function (2):
    Apr 16, 2017 - Lambda Functions in Python
  4. python generator (4):
    Apr 26, 2017 - Next, Function or Method ?

Friends of Rezha