[Fixed]-Locally hosting Django project


Of course it can be done. When you run the django project, pass on the server ip address and port (if you are not using the default port).

python manage.py runserver x.x.x.x:8080

Where x.x.x.x is the ip and 8080 is the port.

Now all you need is to enter x.x.x.x:8080 in browser on the network connected device.

For more details read this document


I’ll try answering to this to the best of my knowledge. I have two Django apps(separate projects) which is accessible only through LAN or like as you said central,internal,local only website/hub. My company uses it for different applications. You don’t need any webserver because the Django does it all. About setting up your project you can use your PC as local server but if you think traffic is gonna be much then you need a fairly powerful machine (I mean to say dedicated separate PC with better specs) which can handle all the traffic (We actually use same PC for running both the Django apps so its possible). For installation guide visit here and for more clear information visit here and here.

You can run server by python manage.py runserver which runs only on your machine which you can use while developing the app (none can access it though you will be connected to internet or LAN)

You can also run server by python manage.py runserver your ip address:port number.
eg. python manage.py runserver

Now when you have two projects running in same machine (as in my case) you need to keep the ip same but just change the port number. Example is as shown below.

for first Django server

python manage.py runserver

for second Django server

python manage.py runserver

Leave a comment