Comments (5)
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.
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.
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.
Thanks for explanation.
from django-admin-tools.
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)
- JS dont add last column HOT 1
- conflict with django-constance app? HOT 4
- Jquery 1.9 considered insecure HOT 1
- Application labels aren't unique, duplicates: dashboard
- Cannot extend admin-tools blocks into templates
- Any thoughts having a UI to configure (show/hide) columns of a table for users according to permissions
- New release on pypi HOT 1
- Menu: Collapse sub-menus of apps with only one model
- Menu: Detect most important model per app
- Error while running the tests HOT 1
- Can User Administration would do CRUD operation through 3rd party REST api instead of DB data HOT 1
- Customizable sidebar
- [UI] compatible with Django Admin's Dark mode
- dont work in django 4.0.1 python 3.8 - unable to import dashboard.py HOT 1
- Error parsing template admin_tools/menu/dummy.html: Invalid template name in 'extends' tag: '' HOT 4
- Incompatibility between django-debug-toolbar and django-admin-tools HOT 1
- Add default theming support for Django's new dark mode HOT 1
- Usage with Django 4.x HOT 3
- Update `tox.ini` to match list of classifiers from `setup.py`
- Reuse CSS variables provided by django HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-admin-tools.