当我们使用python django manage.py runfcgi 时,有时候会出现错误:
Unknown command: ‘runfcgi’
这是由于django版本,在1.9以上不支持runfcgi命令,如果要使用 runfcgi,将django的版本 更换到 1.8 就可以了
当我们使用python django manage.py runfcgi 时,有时候会出现错误:
Unknown command: ‘runfcgi’
这是由于django版本,在1.9以上不支持runfcgi命令,如果要使用 runfcgi,将django的版本 更换到 1.8 就可以了
我猜测一下, runfcgi使用FCGI并且依赖flup,平时的测试环境直接runserver就行了,
可见runfcgi可能是django想要给用户提供在生产环境的。
而django是一个后端框架,应该集中精力在框架本身,而不是框架与服务器的交互,这部分应该由用户来自己选择。
2 回答5.1k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
4 回答1.4k 阅读✓ 已解决
3 回答1.3k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
1 回答1.7k 阅读✓ 已解决
1 回答1.2k 阅读✓ 已解决
谷歌Django开发讨论组内容
And installing uWSGI there is simply not an option there.
So unless there's a pure python FastCGI -> WSGI library built that supports Django, we're just closing the door on this avenue...
[I say this despite my personal loathing of HostGator... :)]
This would be my concern as well.
I have no love for FastCGI as a platform, but there's a wide range of hosting providers out there, especially at the cheap end, that don't provide a WSGI option.
The right option here may well be to say "Tough Luck" to these people and and encourage them to move to different hosting providers. However, I don't want to rush into this decision without considering the effect on the low end of our user base.
Yours,
Russ Magee %-)
v2ex上的讨论