S
S
sortfact3332020-10-25 20:11:02
Django
sortfact333, 2020-10-25 20:11:02

Why is dynamic url request not working?

i make a request like this

{% url 'pages:page' b.id %}
{{b.id}}

And django writes to me
django.urls.exceptions.NoReverseMatch: Reverse for 'pages' with arguments '('',)' not found. 1 pattern(s) tried: ['ru/page/(?P[0-9]+)/$']

but {{b.id}} displays the page id, which is the problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sand, 2020-10-26
@sand3001

Can you take a look at the line for 'pages:page' in urls.py?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question