擅长:python、mysql、java
<p>应该用中央系统或服务器来完成。</p>
<p>默认情况下,<code>manage.py runserver</code>不会授予ip绑定权限。所以</p>
<blockquote>
<p>Note that the default IP address, 127.0.0.1, is not accessible from other machines on your network. To make your development server viewable to other machines on the network, use its own IP address (e.g. 192.168.2.1) or 0.0.0.0 or :: (with IPv6 enabled).</p>
</blockquote>
<p>如果要签入本地计算机,请遵循</p>
<blockquote>
<p>python manage.py runserver 0.0.0.0:8000</p>
</blockquote>
<p>现在转到网络计算机并像<code>192.168.1.24:8000</code>那样访问ip</p>
<p><strong>更新:</strong></p>
<p>对于Django版本约1.10,您应该将主机添加到允许的主机<a href="https://stackoverflow.com/a/40582485/3762142">here</a></p>