tn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="https://www.django-rest-framework.org/">Django REST framework</a>
          <div class="nav-collapse collapse">
            {% if nav|length>1 %}
            <!-- Main navigation -->
            <ul class="nav navbar-nav">
              {% for nav_item in nav %} {% if