title: Flask: one template does not extend base correctly
body: <p>One of my templates (<strong>offers_overview.html</strong>) does not inherit my <strong>base.html</strong> template correctly. Instead it just outputs the html given in <em>offers_overview.html</em> without the html from <em>base.html</em>.</p>
  
  <p>I have another template (<strong>customer_overview.html</strong>) with the exact same html as offers_overview.html and it extends the base.html perfectly fine. That is what makes me confused. <strong>What am I doing wrong?</strong></p>
  
  <p>Here is what my views.py looks like for <em>offers_overview</em>:</p>
  
  <pre><code>@mod.route('/&lt;username&gt;/&lt;int:inquiry_id&gt;', methods=['GET', 'POST'])
  @login_required
  def show_offers_overview(username, inquiry_id):
   user = Customers.query.filter_by(cusername=username).first()
   inquiry = Inquiry.query.filter_by(iid=inquiry_id).first()
  
   if (user or inquiry) is None:
      flash('User %s or inquiry %s is not found.' % (username, inquiry_id))
      return redirect(url_for('user.user_overview', username=user.cusername))
   return render_template('offers_overview.html', inquiry=inquiry)
  </code></pre>
  
  <p>Here is what views.py looks like for <em>customer_overview</em>:</p>
  
  <pre><code>@mod.route('/&lt;username&gt;', methods=['GET', 'POST'])
  @login_required
  def user_overview(username):
   user = Customers.query.filter_by(cusername=username).first()
   if user is None:
      flash('User %s not found.' % username)
      return redirect('/user/login')
   return render_template('customer_overview.html', customer=user)
  </code></pre>
  
  <p>Here is offers_overview.html:</p>
  
  <pre><code>{% extends 'base.html' %}
  
  {% block title %}Offers overview{% endblock title %}
  {% block body %}
    &lt;h2&gt;Not important {{ inquiry.worktitle }}&lt;/h2&gt;
    &lt;br&gt;
    &lt;h3&gt;Future&lt;/h3&gt;
    &lt;br&gt;
    &lt;h3&gt;Present&lt;/h3&gt;
    &lt;br&gt;
    &lt;h3&gt;Past&lt;/h3&gt;
  {% endblock body %}
  </code></pre>
  
  <p>Which is exactly the same code as in customer_overview.html, except from inquiry being changed to customer.</p>
  
  <p>I tried changing which template to be rendered in <em>show_offers_overview()</em> to customer_overview. The result was that the child template did not inherit the base template.</p>
  
  <p><strong>UPDATE</strong>
  This is how the templates are structured:</p>
  
  <pre><code>|project\
     |app\
        |templates\
           |--base.html
        |user\
           |templates\
              |--customer_overview.html
              |--offers_overview.html
           |--__init__.py
           |--views.py
  </code></pre>