Search code examples
iphonedjango

Testing Django website on iphone


I apologize for such a beginner question, but I'm stuck. I'm starting learn web development and I want to test out something I am hosting locally using Django runserver command. I would like to test it on my iPhone. According to this question, I just need to point my iPhone to my Windows 7 ip address (which I found through ipconfig). When I try to, I get the error: "Safari could not open the page because the server stopped responding" (a time-out).

Is there anything else that I need to do?


Solution

  • In addition to using the correct IP, your runserver command should listen on 0.0.0.0(all IPs).

    runserver 0.0.0.0:8000