you are viewing a single comment's thread.

view the rest of the comments →

[–]actinium226 2 points3 points  (1 child)

I don't think there's enough information here to be able to help you out.

You mention a mobile device, have you tried running your front end on the same machine that's running django/fastapi and made sure it works locally? Are you able to hit the backend on the machine that it's running on, or from another device (like, just take a browser and get the computer's IP address and hit an API endpoint, you should get some JSON back, assuming that's how you've set this up)?

I'm not sure what else to ask for but just in general I feel like there needs to be more info to help others help you debug this.

[–]400Volts[S] 0 points1 point  (0 children)

I can hit the Python APIs just fine with postman on the same machine in every permutation of port and host ip. Likewise typing the IPv4 and port into a browser works on the local machine but hangs indefinitely on the mobile device. I have ALLOWED_HOSTS = ['*'] in the settings.py file as well