How to make Django's devserver public



python manage.py runserver 0.0.0.0:8181


This will run development server that should listen on all IP's on port 8181, but it will still be single threaded so only one connection will be possible at the time.

From docs:

Note that the default IP address, 127.0.0.1, is not accessible from other machines on your network. To make your development server viewable to other machines on the network, use its own IP address (e.g. 192.168.2.1) or 0.0.0.0.

你可能感兴趣的:(django)