hey guys please I have problem with these server http//127.0.0.1:8000 on my phone is not running
Hey, i can help here but can't guarantee it'll work on mobile bcos of several reasons.
Like my brother error047 said, if you can find the ip address of your computer, awesome.
Bcos then you can add it to the ALLOWED_HOSTS in the settings.py file, along with 127.0.0.1 as well.
And then you go to the command prompt and type:
python3 manage.py runserver 0.0.0.0:8000
(I use ubuntu)
And now if you go the ip address that you put in the settings.py file, via port 8000, you'll find your website running.
You see, the browsers on the phone strictly filter websites which are not secured, which your website won't be if it's running on django development server, and that's why you won't be able to see it on your phone. Besides that, your website should also be responsive to mobile devices for it to appear correctly.
That's how I serve my current application to the testing team in my office. But it won't work on my phone bcos I have already tried it. It says, can't connect, not secure.
Hope that helps ☺️