Rezha Julio

The Hard Coded Chemist

Vagrant's hosted Django can't be accessed


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 runserver, I can’t accessed from my browser even after I enabled vagrant’s port forwarding.

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