1
Just run the server (which is Django’s embedded server FWIW, not PyCharm’s) under http://my_private_ip:8000
:
# ./manage.py help runserver
Usage: manage.py runserver [options] [optional port number, or ipaddr:port]
Starts a lightweight Web server for development.
(...)
# ./manage.py runserver my_private_ip:8000
0
Assuming a Unix environment.
You need to ensure the server is listening not on the lo
interface but on all interfaces (or at least the one used to connect to the LAN).
If you can customize the way PyCharm launches the server, use 0.0.0.0
as the host, as in:
python manage.py runserver 0.0.0.0:8000
Your coworkers can then use your LAN IP address. If you don’t know it, use $ ip a
.
- [Answer]-Heroku django collectstatic error
- [Answer]-DRF 1.7.1 'str' object has no attribute 'resolve' AttributeError
- [Answer]-TemplateDoesNotExist at /home/ – But yes, it's in there
- [Answer]-Get Social websites profile link and attach those to a django user
Source:stackexchange.com