$ python manage.py runserver 113.193.144.56:80
Performing system checks...
System check identified no issues (0 silenced).
December 27, 2014 - 13:12:42
Django version 1.7.1, using settings 'usertracking.settings'
Starting development server at <code>113.193.144.56:80</code>
Quit the server with CONTROL-C.
Error: That IP address can't be assigned-to.
答案 0 :(得分:0)
您可以在Django中运行的IP是localhost (0.0.0.0 / 127.0.0.1)
或在本地访问网络中分配给您的设备的IP(应该是192.168.1.xx
类型的IP),除非你用路由器打开一个端口我不认为是这样的。您使用的IP是路由器的IP。