I want have my url come from views.py and then I can pass it as variable to href tag in template.
views.py:
context {
'urlLink': "{% url 'myapp:theURL' %}"
...
}
index.html:
<a href="{{ urlLink }}" LINK 1 </a>
I have the above and it is not working. I have also tried <a href="{{ urlLink|escape }}" LINK 1 </a> but no success.