Hi,
I’m stuck at the part of the tutorial where I change the look of the admin screen. I’ve created the templates and admin folders in the project directory and copied in base_site.html. See picture below (I’m doing the tutorial in the Replit environment).
I’ve then added BASE_DIR / “templates” to settings.
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / "templates"],
'APP_DIRS': True,
'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',
],
},
},
]
In the copied base_site.html I’ve changed it as suggested:
{% extends "admin/base.html" %}
{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}
{% block branding %}
<div id="site-name"><a href="{% url 'admin:index' %}">Polls Administration</a></div>
{% if user.is_anonymous %}
{% include "admin/color_theme_toggle.html" %}
{% endif %}
{% endblock %}
{% block nav-global %}{% endblock %}
But it still comes out with Django administration in the title of the admin page.
Its clearly not picking up the path to my new template.
Any ideas what I have mucked up, things have been going pretty well since part 2 and I’m beginning to get my head round it all so some help appreciated!