[Django]-Title being displayed both in browser's bar and in body in Django

2👍

The fact your block title is also in the block content might be the reason, just put it outside.

{% extends 'base.html' %} 

{% block title %} 
    Title goes here 
{% endblock %}

{% block content %}
    <div class="container">
      <div class="row">
    
        <div class="col-md-8 card mb-4  mt-2 left  top">
          <div class="card-body">
            <div class="">
              Here is some content.
          </div>
            </div>
        </div>
        {% block sidebar %} {% include 'sidebar.html' %} {% endblock sidebar %}
      </div>
    </div>
{% endblock content %}

Leave a comment