D
D
darkglare2020-10-13 13:51:00
Django
darkglare, 2020-10-13 13:51:00

How to correctly insert a link into a template from urls?

There is a url:

url(r'^goods/', include('shop.urls', namespace='shop')),

you need to insert this link into the template

url {% url 'shop' %} doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-10-13
@darkglare

{% url 'shop:product_list' %}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question