簡體   English   中英

Axios 與 django 服務器在 localhost

[英]Axios with django server on localhost

試圖從我的反應原生應用程序訪問 localhost 上的 django 服務器。 我得到的只是網絡錯誤,這並沒有說太多。 嘗試按照堆棧上的其他答案中的建議更改 info.plist 文件,嘗試更改防火牆設置等。

The thing that worked and solved all my problems was changing the url on axios to my local ip and running django server with command: python manage.py runserver 0.0.0.0 which to my understanding will accept any connection to the server.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM