Django is an extremely popular and fully featured server-side web framework, written in Python. This module shows you why Django is one of the most popular web server frameworks, how to set up a development environment, and how to start using it to create your own web applications
Django server is mostly run on computers but when you want to make your DjangoProject responsive and do various testing. Then using mobile can be proved as an advantage. Here we will try to learn how we can deploy our website on our phones.
Stepwise Implementation
Step 1
We have to enable python to communicate through a firewall. For that, you can search in the windows search bar for “Allow an app through Windows Firewall”.

Step 2:
After that, you will see a list of applications that are currently in your PC
Search for python and python.exe and check them true , This will allow your Django project to be accessed overall firewall, and the devices connected to the same wifi can access the project or any thing which is in the server

Step 3:
Start mobile hotspot in your phone and connect it your PC with the wifi connection of your phone.
Step 4 :
After connecting. Open your command prompt, and write a command ipconfig in it. You will see your IP details and also your ipv4 address. This is the way to access your PC private Network

Step 5 :
After getting your IP address, go to the Django Project in settings.py, and add the IP address to your ALLOWED_HOSTS.
This way your phone will not give any error.
settings.py
. .. ... ALLOWED_HOSTS = ["127.0.0.1", "192.168.182.51", "localhost"] ... .. .
Step 6 :
After adding Open terminal and run the server using the command
python manage.py runserver 0.0.0.0:80000
Step 7 :
Open your mobile phone and open your browser. Now type Ip that shown in your CMD along with :8000 Example
192.168.43.28:8000
Output :
Github : https://github.com/saikumar248?tab=repositories
Use above repository for creating projects