More than 3 years have passed since last update.
posted at 2018-11-27
$ python manage.py runserver 8000
アクセス制限がかかっているので、settings.pyのALLOWED_HOSTSを修正する必要がある。 フルオープンにするときは'*'を入れればいい。
ALLOWED_HOSTS
ALLOWED_HOSTS = ["*"]
サーバを起動するときは0.0.0.0で起動する
$ python manage.py runserver 0.0.0.0:8000
Register as a new user and use Qiita more conveniently