开发者

How to run python scripts on your server?

开发者 https://www.devze.com 2022-12-22 10:31 出处:网络
I have mod_python installed on my server, but i开发者_JAVA百科f I want to acceses a python script - let\'s say httü://site.com/something.py the script doesn\'t run, the download box \"pops up\"

I have mod_python installed on my server, but i开发者_JAVA百科f I want to acceses a python script - let's say httü://site.com/something.py the script doesn't run, the download box "pops up"

Any solutions?


I would consider a lightweight framework such as http://werkzeug.pocoo.org/ as it isn't very practical in the modern day to have CGI-style python scripts.

And I would use mod_wsgi instead of mod_python as the latter is a bit outdated.


This should be on ServerFault. By the way, mod_python is deprecated, use WSGI instead.


Is mod_py configured ok?
http://www.modpython.org/live/current/doc-html/inst-apacheconfig.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号