कुप्पी से एक साधारण स्थिर साइट को लागू करने के लिए, लेकिन ब्राउज़र का कहना है टेम्पलेट नहीं मिला, खोल लौटे 404बोतल खाका नहीं मिला
jinja2.exceptions.TemplateNotFound
TemplateNotFound: template.html
मुख्य अजगर कोड:
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def template_test():
return render_template('template.html', my_string="Wheeeee!", my_list=[0,1,2,3,4,5])
if __name__ == '__main__':
app.run(debug=True)
मैं निम्नलिखित है फ़ाइल संरचना:
flask_new_practice
|--template/
|--template.html
|--run.py
क्या आप कृपया मुझे कहां देखेंगे पूछो मैं जानना चाहता हूँ। उन उत्तरों ने मेरी समस्या का समाधान नहीं किया। – saviour123