[Django]-Implement regex in django template 20 December 2023 by thecoderscamp.com 6👍 you can just do {% if '/blog/' in request.path %}class="active"{% endif %} no need for regexp 👤doniyor [Django]-How can I resolve the Django error "add a non-nullable field"? Source:stackexchange.com