Giter VIP home page Giter VIP logo

Comments (5)

KINGH242 avatar KINGH242 commented on May 13, 2024 21

In Django 1.10 you cannot have "APP_DIRS" setting simultaneously with 'loaders' option set in "Templates".

The solution, in my case at least, was to remove 'APP_DIRS':True, but make sure include 'django.template.loaders.app_directories.Loader' in the 'loaders' option under 'Templates'. These two settings are one in the same.
For more info on Djanog Template Loaders see here

from django-admin-tools.

izimobil avatar izimobil commented on May 13, 2024 8

This is not a django-admin-tools issue, you probably didn't set the django templates loaders setting correctly.

Make sure you have django.template.loaders.filesystem.Loader and django.template.loaders.app_directories.Loader in your template loaders.

from django-admin-tools.

lggwettmann avatar lggwettmann commented on May 13, 2024 1

This would be useful in the documentation. It's very messy in the configuration section and this clarified it for me a lot. Thanks for this post.

from django-admin-tools.

benzolius avatar benzolius commented on May 13, 2024

Thanks for explanation.

from django-admin-tools.

asor1 avatar asor1 commented on May 13, 2024

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'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',
],
'loaders' : (
'admin_tools.template_loaders.Loader',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
),
},
},
]
I did everything as you advised the man above, but still gives indintichnuyu error. Virtualenv use, just using Django 1.10 and the latest release of your Django-admin Tools

from django-admin-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.