django: how do I actually override admin site template
<p>I know this is asked and answered several times but I basically went over all the post on stack overflow and still couldn't get this to work. Right now I am just trying simply change the admin site title. I have the following:</p>
<pre><code>#base_site.html
{% extends &quot;admin/base_site.html&quot; %}

{% block title %}{{ title }} | {{ site_title|default:_('NEW TITLE') }}{% endblock %}

{% block branding %}
&lt;h1 id=&quot;site-name&quot;&gt;&lt;a href=&quot;{% url 'admin:index' %}&quot;&gt;{{ site_header|default:_('NEW TITLE') }}&lt;/a&gt;&lt;/h1&gt;
{% endblock %}

{% block nav-global %}{% endblock %}
</code></pre>
<p>And I tried to put this in</p>
<blockquote>
<p>my_site/templates/admin/base_site.html,</p>
<p>my_site/templates/admin/my_app/base_site.html, and</p>
<p>my_site/my_app/templates/admin/base_site.html,</p>
</blockquote>
<p>but none of these work.</p>
<pre><code>settings.py:
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'templates')],
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
            'loaders': [
                'django.template.loaders.filesystem.Loader',
                'django.template.loaders.app_directories.Loader',
            ],
        },
    },
]
</code></pre>
<p>I also tried just directly changing django\contrib\admin\templates\admin\base_site.html but still nothing happens.</p>
<p>I am really frustrated now and definitely could use some help, thanks</p>
<p>Updates:
Actually I found out that the local template does have effect.
<a href="https://i.stack.imgur.com/PvybC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PvybC.jpg" alt="enter image description here" /></a></p>
<p>Like here, the topmost white bar displays &quot;#base_site.html!!@#&quot; which is what I put in my_site/templates/admin/base_site.html as a comment by chance. So it kinda working, but I still don't understand why I can't change the site title.</p>