I am trying to call some functions and return the results in the browser but I get a 500 Internal Server Error. I have this code following this answer
from flask import Flask
app = Flask(__name__)
@app.route("/")
def message():
return "Message from python function named 'message' "
@app.route("/user/<username>")
def user(username):
return "Username is %s " % username
@app.route("/userpass/<username>/<password>")
def userpass(username, password):
return "User is %s and password %s " % username % password
and I am calling the first one just by using
the second one using
and the last one by using
and I get the error 500. What's the problem with the last call?