I followed the instructions here to run Django using the built-in webserver and was able to successfully run it using "python manage.py runserver". If I access 127.0.0.1:port locally from the webserver, I get the Django page indicating it worked.
I realize the Django webserver is not a production server, but it's important for me for testing purposes to be able to access it from the outside world -- i.e. not from a webbrowser on the server, but from a different computer. How can I do this? I tried:
You have to run the development server such that it listens on the interface to your network.
python manage.py runserver 0.0.0.0:8000
listens on every interface on port 8000.
It doesn't matter whether you access the webserver with the IP or the hostname. I guess you are still in your own LAN.
If you really want to access the server from outside, you also have to configure your router to forward port e.g.
8000 to your server.
Update: Check your firewall on your server whether incoming connections to the port in use are allowed!
Assuming you can access your Apache server from the outside successfully, you can also try this:
sudo python manage.py runserver 0.0.0.0:80