I have created routes like the following in the graph.py file
bp = Blueprint('graph', __name__, url_prefix='/')
from flask import jsonify
@bp.route("/", methods=("GET", "POST"))
def index():
return render_template("graph/index.html")
@bp.route("/patent", methods=(['GET', 'POST']))
def patent():
return render_template("graph/patent.html")
@bp.route("/literature", methods=("GET", "POST"))
def literature():
return render_template("graph/literature.html")
it is working fine on my localhost(windows) but on the server(Ubuntu 18) it runs the simple route ('/') but with the name ('/patent', 'literature') it is not working. The Error on web browser is following
Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.