Answer the question
In order to leave comments, you need to log in
How to get url inside views.py?
I need analog
But inside views.py
{% url 'article:add' id %}
Answer the question
In order to leave comments, you need to log in
Something like this:
from django.urls import reverse
url = reverse('article:add', kwargs={'id': id})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question