Getting Django To Work With Vagrant

I was having problems getting Django working with Vagrant, then I stumbled upon this StackOverflow answer.

The problem with the port forwarding is not with Vagrant, but with Django itself. You need to bind to, not

So you’d run this command:

python runserver

That will fix all of your issues.

Thanks for reading my post! If you enjoyed it or it helped you, please consider liking/tweeting this page, commenting, or following me on GitHub or Twitter!