An error has been identified in the application that is generating a ValueError exception with the following stack trace:
@register.inclusion_tag('tours/tags/tours.html')defload_tours(request: HttpRequest):
resolver_match=getattr(request, 'resolver_match', None)
ifresolver_matchisnotNone:
url_name=resolver_match.url_name# Filter active tours related to the current viewtours=Tour.objects.filter(
Q(url_names='') |Q(url_names__contains=url_name) # HERE url_name is None
).exclude(
is_active=False,
)
# ...