[Django]-Treebeard admin in Django

3👍

I found a solution. It’s not sufficient adding ‘django.core.context_processors.request’ to TEMPLATE_CONTEXT_PROCESSORS tuple in settings.py.

I added also

"django.core.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media"

and now it works.

👤surfi

2👍

You have to add ‘django.core.context_processors.request’ to TEMPLATE_CONTEXT_PROCESSORS tuple in settings.py.

👤ml.

1👍

Maybe you forgot to add ‘treebeard’ application to INSTALLED_APPS.

My settings.py is similar to default one. I always add PROJECT_PATH = os.path.dirname(os.path.abspath(__ file__)) variable, so my TEMPLATE_DIRS looks like that:

TEMPLATE_DIRS = (
    PROJECT_PATH + '/templates',
)
👤ml.

Leave a comment