niwinz / django-jinja

Simple and nonobstructive jinja2 integration with Django.
http://niwinz.github.io/django-jinja/latest/
BSD 3-Clause "New" or "Revised" License
363 stars 102 forks source link

How to use this with Jinja2 in Django #220

Closed JintoAntony closed 2 years ago

JintoAntony commented 6 years ago

I tried to integrate this my project, not working. Can you show me a working example ..?

niwinz commented 6 years ago

Yo dont need to use it with Jinja2 backend in Django, django-jinja provides its own backend. Please just follow the documentation. I have many projects using django-jinja without any problem.

niwinz commented 6 years ago

https://github.com/taigaio/taiga-back/blob/master/settings/common.py#L221 this is an example of configuration used in a taiga.io project.

JintoAntony commented 6 years ago

Let me check. Thank you for your valuable reply. All, I am trying to do is using context processor in jinja2.

JintoAntony commented 6 years ago

Hi, Is there any ways to pass parameters to context processors ..?

JintoAntony commented 6 years ago

Is there anyway to use the load tag with jinja templates ..? because, I have this {% load widget_tweaks %} tag, and it need to get working with jinja template...

wizpig64 commented 2 years ago

closing this as the docs explain how to set this up:

http://niwinz.github.io/django-jinja/latest/#_custom_filters_globals_constants_and_tests