I am using drf-yasg.
I managed to override the template by doing the following
in the template folder
{% extends "drf-yasg/swagger-ui.html" %}
{% block extra_scripts %}
<script>
swaggerUiConfig.layout = "BaseLayout";
// any other override you'd like to do
</script>
<p> Is this text rendering </p>
{% endblock %}
How can I change the top bar logo and text? from "Swagger - supported by SMARTBEAR" to "Smart Calculator"