Skip to content Skip to sidebar Skip to footer

"500 Internal Server Error" Received When Trying To Create A .cgi Application From A Flask Application

I have created the following Flask application in python (named simpleflask.py), using the code below: from flask import Flask import random app = Flask(__name__) app.secret_key =

Solution 1:

Your cgi-script has to write firstly headers. At least 'content-type':

Content-Type: text/html;

with empty line after it. And then goes your content.

Post a Comment for ""500 Internal Server Error" Received When Trying To Create A .cgi Application From A Flask Application"