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 0.0.0.0
, not 127.0.0.1
.
So you’d run this command:
1 | python migrate.py runserver 0.0.0.0:8000 |
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!