windows environment: python manage.py runserver host:port centos environment: python manage.py runserver host:port raise error 修改settings.py 文件全局配置 ALLOWED_HOSTS = [ ‘*‘ ] OR ALLOWED_HOSTS= [ ‘127.0.0.1‘ ,‘more_host‘]
原文地址:https://www.cnblogs.com/yanxiatingyu/p/9779185.html
时间: 2024-10-12 14:47:48