void reg() async { try{ http.Response response = await http.get(Uri.parse("http://10.0.2.2/api/alluser")); print(response.body); } catch(e){ print(e); } }
It is working when I am doing in chrome( web) http://127.0.0.1:8000 but not working in android emulator.
in Django's setting.py
ALLOWED_HOST = [10.0.2.2 , 127.0.0.1]
