title: Bootstrap inside Django block
body: <p>I am creating a couple pages for my website by extending a base.html template that I made.  I want to be able to put bootstrap forms on some of the pages, but when I have the <code>{% bootstrap_form formname %}</code> tag inside the <code>{% block content %}</code> tag I get an error: <em>Invalid block tag: 'bootstrap_form', expected 'endblock'</em>.</p>
  
  <p>Does anyone know how to put bootstrap tags inside of a template block??</p>
  
  <p>My base.html:</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
    &lt;title&gt;{% block title %}CYGNSS SIMPL{% endblock %}&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    {% block content %}{% endblock %}
    &lt;div class="container"&gt;
      &lt;img class="img-responsive center-block" src="{% static "images/logo.png" %}" alt="Picture"/&gt;
    &lt;/div&gt;
    {% block footer %}{% endblock %}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My template:</p>
  
  <pre><code>{% extends "InterfaceApp/base.html" %}
  
  {% block title %}Request Generator{% endblock %}
  
  {% block content %}
  &lt;div class="container"&gt;
    &lt;div class="page-header"&gt;
      &lt;h1&gt;
        &lt;p class="text-center"&gt;Such Request Generator&lt;/p&gt;
      &lt;/h1&gt;
    &lt;/div&gt;
    &lt;div class="container-fluid"&gt;
      &lt;div class="panel panel-default"&gt;
        &lt;div class="panel-heading"&gt;
          &lt;p class="text-center"&gt;
            Generate a Request. 
          &lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="container-fluid"&gt;
          &lt;form action="/InterfaceApp/Manual_Request/" method="post" class="form" onsubmit="return checkForm( this )"&gt;
            {% csrf_token %}
            &lt;div class="panel-body text-center"&gt;
              &lt;table class="table-responsive centering"&gt;
                &lt;tbody&gt;
                  &lt;tr&gt;
                    &lt;td&gt;
                      {% bootstrap_form form_length %}
                    &lt;/td&gt;
                  &lt;/tr&gt;
                &lt;/tbody&gt;
              &lt;/table&gt;
              &lt;br&gt;
              &lt;table class="table-responsive centering"&gt;
                &lt;tbody&gt;
                  &lt;tr&gt;
                    {% buttons %}
                    &lt;td&gt;
                      &lt;button type="submit" class="btn btn-primary center-block" value="Submit"&gt;
                        {% bootstrap_icon "fire" %} Generate Manual Request
                      &lt;/button&gt;
                    &lt;/td&gt;
                    {% endbuttons %}
                  &lt;/tr&gt;
                &lt;/tbody&gt;
              &lt;/table&gt;
            &lt;/div&gt;
          &lt;/form&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  {% endblock %}
  </code></pre>
  
  <p>Any help is much appreciated!</p>