How can I view a django site working with a “launch server” remotely

I currently have a django project that I am working on. The project sits on my remote web server, and I launch it by running manage.py runserver 0.0.0.0:8000 . Howver, if I try to access the site through domainname.com:8000, I do not see the site.

How can I remotely view a django project? Do i need to configure using apache? Punch a hole in the firewall? Is there an easy way?

This is strictly for development purposes.

+4
source share
2 answers

You need to bind it to IP, not 0.0.0.0 .

In addition, you can verify that the firewall rules do not stop you from accessing port 8000 (I did this this morning!)

+3
source

You can use ssh tunnels. It's easy to set up on Windows with Putty (look at an example for managing postgresql ) or Google how to use ssh tunnels on Linux. I think this is an awesome thing since I first got into my database on a remote server :)

+2
source

All Articles