title: jinja2.exceptions.TemplateNotFound: index.html
body: <p>I try to open a index.html using Flask</p>
  
  <p><code>run.py</code></p>
  
  <pre><code>from app import app
  app.run(debug = True) 
  </code></pre>
  
  <p><code>__init__.py</code></p>
  
  <pre><code>from flask import Flask  
  app = Flask(__name__)
  from app import routes
  </code></pre>
  
  <p><code>routes.py</code></p>
  
  <pre><code>from flask import render_template
  from app import app
  @app.route('/')
  @app.route('/index')
  def index():
      user = 'Cala'
      return render_template('index.html', user=user)
  </code></pre>
  
  <p><code>index.html</code></p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          {% for user in users %}
              &lt;h1&gt;Hola {{ user }}&lt;/h1&gt;
              &lt;h1&gt;Bienvenido a Olivanders&lt;/h1&gt;
          {% endfor %}
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When i run the run.py file i have the error <code>jinja2.exceptions.TemplateNotFound: index.html</code></p>
  
  <p>The files are in the filed called <em>app</em> except the run.py, this filed is in the general filed</p>
  
  <p><a href="https://i.stack.imgur.com/b1dUg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b1dUg.png" alt="Structure directory"></a></p>