擅长:python、mysql、java
<p>错误日志很简单。正如它所建议的,您需要将<strong>198.211.99.20</strong>添加到您的<code>ALLOWED_HOSTS</code>设置中。</p>
<p>在project settings.py文件中,按如下方式设置<code>ALLOWED_HOSTS</code>:</p>
<pre><code>ALLOWED_HOSTS = ['198.211.99.20', 'localhost', '127.0.0.1']
</code></pre>
<p>供进一步阅读
<a href="https://docs.djangoproject.com/en/1.10/ref/settings/#allowed-hosts" rel="noreferrer">read from here.</a></p>