フラスコを使用してサーバーを起動しようとするとこのエラーが発生します。マイテンプレートファイルは、私はエラーを取得するテンプレートフォルダ(flaskr /テンプレート)テンプレートを使用しているときフラスコエラーが発生しました
import sqlite3
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash
app = Flask(__name__)
@app.route('/templates/')
@app.route('/templates/<name>')
def hello(name=None):
return render_template('index.html', name=name)
if __name__ == '__main__':
app.run()
である:
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
それは言いますURLは間違っています...あなたは '/ hello /'に行きましたか?または '/'に?または、他の何か?あなたはいつもあなたがエラーを得るために何をしたのかを記述するべきです。 – Carpetsmoker
残念ながら更新されたコード。私はちょうどコードを実行し、私はサーバーのURLに行くときにエラーが発生します – Mus
"サーバーのURL"とはどういう意味ですか?ブラウザのアドレスバーに入力したURLはどれですか? – Carpetsmoker