访问开发服务器 - Django

时间:2017-06-19 22:17:40

标签: python django redis

我试图在我的Ubuntu虚拟机上运行朋友的Django项目,但我无法访问开发服务器。 之后:

python manage.py runserver 0:80 --settings=a.settings.dev_a

结果如下:

Performing system checks...

System check identified no issues (0 silenced).
June 19, 2017 - 21:56:31
Django version 1.11, using settings 'a.settings.dev_a'
Starting Channels development server at http://0:80/
Channel layer default (asgi_redis.core.RedisChannelLayer)
Quit the server with CONTROL-C.

1 个答案:

答案 0 :(得分:0)

添加' localhost'你的" dev_a"中的ALLOWED_HOSTS档案

然后再说@FlipperPA,试试

python manage.py runserver [::]:8000 --settings=a.settings.dev_a