Django基础

当设置setting.py文件当中的DEBUG=FALSE后,Django会默认使用Web Server的静态文件处理,故若没设置好Web Server对静态文件的处理的话,会出现访问静态文件404的情况。

可以通过设置--insecure参数解决

icebug@localhost:~$ python manage.py runserver --insecure
原文地址:https://www.cnblogs.com/dspace/p/6166413.html