1👍
✅
<a href="some_url/{{ detail.id }}">
But it is a bad practice. You should use the {% url %}
template tag whenever it possible.
Source:stackexchange.com