Making django server accessible in LAN by_B2
- You pc should connect with Wi-Fi or LAN NETWORK
2. Now Django project — — settings.py file — — —
Search ALLOWED_HOSTS = [“ * “]
3. go cmd and type command
>/ ipconfig
[make sure your pc / laptop connect with Wi-Fi network ]
4) Now run the server @IPv4 Address : u can find your server after step 3
>/ py manage.py runserver <IPv4 address here>:8000
5) Magic is here You can see your live development with the port
Now just type your development server URL @ your Connected Device
eg:
if your same LAN/ Wi-Fi has 4 device connected and u go @ browser and past this IP adders with port adders so u can see you site on LAN network :)
_________________________________________________________________
For more such Tips and magics Join Python Pact :
_________________________________________________________________