Getting python to work, Internal Server Error

后端 未结 12 1530
無奈伤痛
無奈伤痛 2021-02-08 11:07

I\'m trying to get Python scripts, called from a web browser, to work. I keep getting the error:

500 Internal Server Error

When I check my err

12条回答
  •  鱼传尺愫
    2021-02-08 11:46

    You may also get a better error message by adding this line at the top of your Python script:

    import cgitb; cgitb.enable()

    Also, the header should be capitalized Content-Type, not Content-type, although I doubt that that is breaking anything.

提交回复
热议问题