To create the Templates folder:
and copy a file called base_site.html to the Admin folder under the Django/contrib/admin/templates folder of the Django source code package:
Mysite/├──db.sqlite3├──manage.py├──mysite│├──__init__.py│├──settings.py│├──urls.py│└──wsgi.py└──templa Tes└──admin└──base_site.html
Modify setting.py Templates Path
Add Templates directory path: Support absolute path, relative path, or Os.path.join (Base_dir, ' templates '),
templates = [ { ' backend ': ' django.template.backends.django.DjangoTemplates ', ' app_dirs ': true, ' DIRS ': ['/root/l /mysite/templates/',], #django 1.9 templates write here ' 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 ', ],         },      },  ]
Modify the base_site.html as follows: If Utf-8 is not supported, Chinese may be garbled
{% extends "admin/base.html"%} {% block title%} {{Title}} | Dannysite background Management {% Endblock%}{% block branding%}
This article is from the "Lannyma" blog, make sure to keep this source http://lannyma.blog.51cto.com/4544390/1735647
Django Background page title customization