姜戈 +莱特普德
我在设置 django 和 lighttpd 时遇到一些问题。
这就是我想要做的:
- 让lighttpd管理fascgi进程(它们都在同一服务器上运行)
- 让django应用程序在站点的根目录下运行(所以没有django.fcgi)
或者我可以在启动时启动django,但我需要一个 ubuntu/debian 的启动/停止脚本。
另外,我如何处理媒体/管理媒体网址?我还想从文档根目录提供 /css /js /img ...
TIA 帕特里克
I am having some trouble getting django and lighttpd setup.
Here ist what I want to do:
- Have lighttpd manage the fascgi processes (they both are run on the same server)
- Have the django app run at the root of the site (so no django.fcgi)
Alternativly I could start django on startup, but I would need a start/stop script for ubuntu/debian.
Also how do I handle the media / admin media urls? Also I would like to serve /css /js /img from the document root ...
TIA
Patrick
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅:
https://github.com/cdsi/elrond/blob/ master/etc/lighttpd.conf
https:// github.com/cdsi/elrond/blob/master/var/www/elrond.wsgi
请务必相应地更新 env.ELROND_XXX 路径,并将: 更改
为:
Please see:
https://github.com/cdsi/elrond/blob/master/etc/lighttpd.conf
https://github.com/cdsi/elrond/blob/master/var/www/elrond.wsgi
Be sure to update the env.ELROND_XXX paths accordingly, and change:
to: