[Answered ]-Django: is not a valid view function or pattern name when trying to add a url using url tag in django

1👍

You need to pass in the url name for the urlpattern that matches /course/learn-angular/contents/ and then pass in the query params for the lecture id ?lecture=1

<a href="{% url 'name_for_route' %}?lecture={{v.serial_number}}">

Leave a comment