Which of these is the correct way to reference a URL in a template?
- A {% url 'app:view_name' %}
- B {{ url('view_name') }}
- C {% link 'view_name' %}
- D <a href="/hardcoded/path/">
Answer
{% url 'app:view_name' %}
Named URL reversing keeps templates working when paths change. Hard-coded paths break silently on any URL restructure.





