settings.py设置为DEBUG = False后,如下报错:页面全是404(没有静态资源)

(python36env) [vagrant@CentOS devops]$ python manage.py runserver 0.0.0.0:8000
CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.

部署问题

 

相关文章:

  • 2021-09-22
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
猜你喜欢
  • 2022-02-17
  • 2021-10-04
  • 2021-10-22
  • 2022-01-12
  • 2022-03-07
  • 2021-08-18
  • 2021-10-18
相关资源
相似解决方案