首先setting要设置:
ALLOWED_HOSTS = ["*"]
然后在启动时,使用:
python manage.py runserver \[::\]:8000
或是:
python manage.py runserver [::]:8000
这样: