title: Flask Template Not found
body: <p>Implementing a simple static site from flask, but the browser says template not found, the shell returned 404</p>
  
  <pre><code>jinja2.exceptions.TemplateNotFound
  
  TemplateNotFound: template.html
  </code></pre>
  
  <p>The main python code:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>I have the following file structure:</p>
  
  <pre><code>flask_new_practice
  |--template/
      |--template.html
  |--run.py
  </code></pre>