Django Remote Development Server

If you’ve worked with Django much at all, I’m sure you’ve had this problem: wanting to access the built-in development webserver remotely. Typically, this integrated mini-server ignores all requests from any IP Address other than 127.0.0.1 . If you run the following command, however, it will be accessible remotely. VERY useful for remote dev work.

./manage.py runserver 0.0.0.0:8000

Enjoy!

ONE FEEDBACK

  1. Serranos says:

    If your box has an sshd daemon running, which probably does, another possibility is for you to create a reverse SSH tunnel from your local machine to the dev server:

    ssh -nNL 8000:localhost:8000 -l

    Now you can access it through your local machine, within an encrypted tunnel and without needing to expose your dev server.

LEAVE A COMMENT

Additional comments powered by BackType