我如何 运行 Ubuntu 子系统中的 Django 服务器用于 Windows 10?

How can I run a Django server in the Ubuntu subsytem for Windows 10?

我使用了这些命令(Ubuntu Bash 在 Windows 10 子系统中):

$ pip install virtualenv
$ cd ~
$ virtual venv
$ source venv/bin/activate
(venv) $ pip install django
(venv) $ django-admin startproject mysite
(venv) $ cd mysite
(venv) $ python managy.py makemigrations
(venv) $ python managy.py migrate
(venv) $ python managy.py runserver
...
Starting development server at http://127.0.0.1:8000/

...

(在Windows 10)
打开网络浏览器
输入 URL:http://127.0.0.1:8000/
... 没有回应....

我错过了什么吗? This video 显示它有效,但对我来说,它没有。

您的端口 8000 可能正在使用中。 运行 不同端口号上的服务器。

python manage.py runserver 127.0.0.1:9595