Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

permission.templatetags.permissionif" is not found in ' django.core.exceptions.ImproperlyConfigured: "permission.templatetags.permissionif" isnot found in none of `TEMPLATES[?]['OPTIONS']['builtins'] #79

Closed
Allan-Nava opened this issue Nov 17, 2017 · 2 comments
Labels

Comments

@Allan-Nava
Copy link

I follow the basic configuration:

But i got this error:

permission.templatetags.permissionif" is not found in '
django.core.exceptions.ImproperlyConfigured: "permission.templatetags.permissionif" isnot found in none of `TEMPLATES[?]['OPTIONS']['builtins']`.
From Django 1.9, users require to specify the module to the option for loading a templatetag automatically or load the module manually.
Users can ignore this exception via setting `False` to `PERMISSION_CHECK_TEMPLATES_OPTIONS_BUILTINS

I had also the django-guardian but i need to extend the permission for specific group

@Allan-Nava
Copy link
Author

I solved with this

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'OPTIONS': {
            'builtins': ['permission.templatetags.permissionif'],
        },
    },
]

@lambdalisue
Copy link
Contributor

lambdalisue commented Nov 17, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants