运行cherrypy web服务器的django run server类命令
django-cpserver的Python项目详细描述
cpserver是一个django应用程序,旨在解决简单但有用的问题 任务:在cherrypy webserver下运行django项目。它包含两个 命令:
- runcpdebug, which outputs information about each request (in format, similar to Apache’s access_log). It is useful as replacement for regular runserver command.
- runcpserver, which is quite silent (it only tells you configuration after starting). It is useful for running as backend for Nginx or HAProxy or whatever you’d like to use.
安装
很简单:将cpserver目录放在python的sys.path下(in 站点包或在django项目树结构中),并将'cpserver'添加到 已安装的应用程序设置。
谢谢
感谢djangocerise项目,我从中获取了初始代码。