You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,22 @@
50
50
```
51
51
52
52
If you do not add `django.contrib.auth` to your `INSTALLED_APPS` and you define any permissions for your navigation items, `django-simple-nav` will simply ignore the permissions and render all items regardless of whether the permission check is `True` or `False.`
53
+
54
+
1. **Add the template function to your Jinja environment**
55
+
56
+
If you want to use Jinja 2 templates you will need to add the `django_simple_nav` function to your Jinja environment.
57
+
Example:
58
+
59
+
```python
60
+
from jinja2 import Environment
61
+
from jinja2 import FileSystemLoader
62
+
63
+
from django_simple_nav.jinja2 import django_simple_nav
0 commit comments