Starting a django dev server that is externally accessible
This is particularly handy if you're using Vagrant for development. To start a development server that can be accessed from any host (by default it can only be reached from the same interface).
./manage.py runserver [::]:8000
Written by Bayard Randel
Related protips
2 Responses
It's probably worth mentioning that running the server with [::]:8000 will enable IPv6 support, whereas 0.0.0.0:8000 will only enable IPv4 support.
over 1 year ago
·
@chrismckinnel I found 0:8000 is also works.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#