0

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

below is the code in my application

from flask import Flask, render_template

app = Flask(name);

@app.route("/") def index(): return render_template("index.html")

Some one please guide why I am getting error

1
  • Look in the terminal where flask run was executed, it should tell you what error was encountered. Apr 16 '20 at 11:27
0

See here! you're facing this error just because you just did app = Flask(name) actually it should be with underscores app = Flask(__name__). Try this if it can be helpful!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .