BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ os.path.join(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', ], }, }, ] TEMPLATE_DIRS = ( os.path.join(BASE_DIR, 'templates'), ) 

It seems to be correctly spelled everything

I create a file in { BASE_DIR }/templates/admin/base_site.html , I try to change something, but nothing { BASE_DIR }/templates/admin/base_site.html

  • 1. Why do you specify TEMPLATE_DIRS if you have the same 'DIRS' ? 2. What is your folder structure? It should be like this: project_name (BASE_DIR) -> templates / -> admin / - AlTheOne
  • because it did not work initially, I looked, I thought I would add to fix it. And by structure I did not break anything, I added it to the root folder - Dima Kaukin

0