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

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

icebug@localhost:~$ python manage.py runserver --insecure

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-10-19
  • 2021-10-05
猜你喜欢
  • 2022-01-13
  • 2021-08-08
  • 2021-09-03
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
相关资源
相似解决方案