Reputation: 2923
I'm trying to follow the the django tutorial but when when I get to the python manage.py runserver
step, I can't browse http://127.0.0.1:8000/ in chrome or IE. But when I wget in bash, I was able to get the html from http://127.0.0.1:8000. I'm using windows 10 anniversary edition and I'm using virtualenv.
Upvotes: 0
Views: 62
Reputation: 11943
Since you say you use wget in bash I'll assume you aren't using windows, so maybe it's another machine.
When you tell django to listen on 127.0.0.1
it will only accept local connections.
Now to open django to everyone you'll have to run it as such :
python manage.py runserver 0.0.0.0:8000
Also you'll have to make sure your gateway accepts connections on port 8000 and forwards them to your computer, where django runs. (see port forwarding).
Upvotes: 2