python - Calling Django server api from android phone -
I'm developing an Android app. I have created a new denggo server on my laptop for local testing. My problem is that I'm not able to call the app Demogen API from app code. For example, if I want to call a Django Server API from the desktop, then I type "Local Host: 8000 / Lok Sabha / Link / 2". Now how to change the "localhost part" of this URL by calling the same API from mobile. And my desktop is connected to the internet by the same mobile hotspot, then basically both desktops and phones are on the same network. My ifconfig command on the desktop show
and my desktop is a pair of Mac and Mobile Samsung Core
You can use your device's internal IP address for the development
in the terminal: $ ifconfig | Grap cabinet
You will get: Cabinet addr: 10.0.0.1 ...... Running server with Django that runs the server
$ Dragon manage.py runserver 10.0.0.1: 8000
By using Android:
"" String as your URL
Comments
Post a Comment