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.
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.