Mohamed Feddad

48%
Flag icon
# settings.py     [                   'django.core.context_processors.request',     ] Now, all that remains is to use this custom tag in your template to set the active attribute: {# base.html #} {% load nav %} <ul class="nav nav-pills">   <li class={% active_nav request 'active1' %}><
Mohamed Feddad
Using a custom template tag
Django Design Patterns and Best Practices: Industry-standard web development techniques and solutions using Python, 2nd Edition
Rate this book
Clear rating