Testing Django on Mobile Devices

Having your website optimized for mobile is essential these days, so you'll want to make sure your Django powered website or application is as well. Here's a quick tip for testing Django on any device.

  1. Find your computer's IP address by typing the following into a terminal:


    In the output, find the IP listed after "inet" inside the "en0" entry. That's your computer's IP address on your current network.

  2. Run your django application using your computer's IP address. Be sure to put a port after the IP:

        ./manage.py runserver
  3. Navigate to that IP / port combination on any device on the same network as your computer. You should see your Django application running there.

And that's it! You can now test your Django sites on a mobile device.