达芙妮:命令使用错误

时间:2018-07-21 15:30:42

标签: django daphne

我在使用Daphne和django 2.0 for asgi的Windows计算机上。当我运行

'daphne mywebsite.asgi:application'

我收到以下错误:

daphne : The term 'daphne' is not recognized as the name of a cmdlet, 

function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ daphne mywebsite.asgi:application
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (daphne:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我查看了虚拟环境,发现安装了daphne(pip install daphne验证不需要安装任何东西)。

有人知道发生了什么事吗?

弥迦

0 个答案:

没有答案