question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TemplateDoesNotExist at /admin/ admin:admin/index.html error

See original GitHub issue

Just installed this package, and I get the above error.

Seems that I cannot use {% extends "admin:admin/index.html" %} within the templates.

Any thoughts?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

16reactions
arsenalstriker14commented, Apr 3, 2016

Django 1.8 > TEMPLATE_LOADERS setting deprecated. You have to use the TEMPLATES dictionary. I think you’re going to want something like:

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':[
            'admin_tools.template_loaders.Loader',
            ('django.template.loaders.cached.Loader', [
            'django.template.loaders.filesystem.Loader',
            'django.template.loaders.app_directories.Loader',
            ]),
        ],
    },
},

]

also note – django 1.8 moved from django.core.context_processors to django.template.context_processors

7reactions
izimobilcommented, Feb 1, 2016

But have you correctly configured django-admin-tools ?

Since versions 0.7.x, you must add admin_tools.template_loaders.Loader to your template loaders as stated in the release notes and in the documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Admin Site: TemplateDoesNotExist at /admin/ - Stack Overflow
I ran into the same problem, and I had to force pip to re-download django. pip install -r requirements.txt --ignore-installed ...
Read more >
django 1.4 - admin TemplateDoesNotExist at /admin/auth/user
Locally we get errors when trying to render the admin pages. However on ... Django error page attached "TemplateDoesNotExist at admin .html".
Read more >
Django Templatedoesnotexist Admin/Login.Html - ADocLib
Just installed this package and I get the above error. Seems that I cannot use {% extends admin:admin/index.html %} within the templates. Just...
Read more >
Templatedoesnotexist At Admin Login
I am getting the above TemplateDoesNotExist error when I try to execute the code. ... from django.contrib import admin from django.urls import path, ......
Read more >
'admin/index.html' does not exist - Google Groups
TemplateDoesNotExist at /admin/. admin/index.html. Created a new virtualenvironment. pip install Django==1.4.21. Pip installs two django directories.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found