<p>在我的设置.py你说</p>
<pre><code>STATIC_ROOT = '/home/khantthulinn/webapps/static_media/'
STATIC_URL = '/home/khantthulinn/webapps/static_media/'
</code></pre>
<p>在我的网址.py你说</p>
^{pr2}$
<p>之后,在我的web服务器中,我复制了静态文件。在</p>
<pre><code>python manage.py collectstatic
</code></pre>
<p>一切都很好,我看得很对。在</p>
<p>当我更改DEBUG=False时,就会出现问题。在</p>
<p>我已经读过了,但我不明白。在</p>
<p><a href="https://docs.djangoproject.com/en/1.10/howto/static-files/deployment/" rel="nofollow noreferrer">https://docs.djangoproject.com/en/1.10/howto/static-files/deployment/</a></p>
<p>我也从这里读过解决方案。在</p>
<p><a href="https://stackoverflow.com/questions/5836674/why-does-debug-false-setting-make-my-django-static-files-access-fail">Why does DEBUG=False setting make my django Static Files Access fail?</a></p>
<blockquote>
<p>With debug turned off Django won't handle static files for you any
more - your production web server (Apache or something) should take
care of that.</p>
</blockquote>
<p>我想试试。我该怎么办?在</p>
<p>我不想运行这个,因为它不安全。在</p>
<pre><code>manage.py runserver --insecure
</code></pre>