Properly Run Python Django under a local network

First, you need to find your local IP address with this command in cmd:
Open and add your IP address to the ALLOWED_HOSTS list:
Finally run command in the terminal:
python runserver
Voila, now you can visit your Django app by accessing this address( from any device in your local network. I’m using this trick for debugging purposes(visiting my local Django apps from mobile phone devices)

This small article is a part of my startup journey, you can read about my progress here
Check how I’m bootstrapping my Python SaaS projects live at Twitter

1 thought on “Properly Run Python Django under a local network”

Leave a Comment