73👍
✅
You need to bind the server to the external IP with:
manage.py runserver 0.0.0.0:8000
0👍
First, you need to do port forwarding in Vagrant file.
config.vm.network "forwarded_port", guest: 8000, host: 8000
Then you need to restart/reload your vangrant vm
vagrant reload
Now ssh to your vm and run django server as follows
python manage.py runserver 0.0.0.0:8000
- [Django]-How to delete a record in Django models?
- [Django]-Django select only rows with duplicate field values
- [Django]-Sanitizing HTML in submitted form data
Source:stackexchange.com