I successfully configured django-admin-tools for using. I tried to create a custom menu as told in documentation as below:
python3 manage.py custommenu
However, this raised an ImproperlyConfugured
error below, saying:
django.core.exceptions.ImproperlyConfigured: app_dirs must not be set when loaders is defined.
I looked at the directory, menu.py is successfully created, yet the content is empty in opposition to the documentation.
My confituration of TEMPLATES
variable is below:
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',
'admin_tools.template_loaders.Loader',
],
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'admin_tools.template_loaders.Loader',
],
},
},
]
Does that mean I need to install django-admin-tools
before creating any app?
Enviroment
- python3
- django 1.8.7