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

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

1 Answer 1


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 .