Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear installation instructions regarding Django's built-in Jinja template backend #381

Open
aleehedl opened this issue Aug 20, 2020 · 0 comments

Comments

@aleehedl
Copy link
Contributor

I find the installation instructions regarding Django's built-in Jinja templating backend a bit unclear as to whether they are supported or not. There are mentions of the separate django-jinja and jingo projects with installation instructions but no mention of the built-in Jinja backend. If it's officially supported, then I guess adding something like this would make the instructions clearer:

With Django's built-in, add the extension to the extensions list:

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.jinja2.Jinja2',
        'OPTIONS': {
            'extensions': [
                # ...
                'waffle.jinja.WaffleExtension',
            ],
            # ...
        },
        # ...
    },
    # ...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant