say i have a variable :
a=['https://www.google.com','https://www.go.com','https://www.ogle.com']
i have a Template dome.html:
{%for i in a %}
<a href=/link/{{a}}>Click</a><br/>
{%endfor%}
I have views.py as bellow:
def someview(request,id):
do something with input (id)
Now i want to configure my urls.py so that it will communicate with my views.py which take {{a}} as input (id).
url(r'^/link/(url-regex)',someview , name="someview"),
Now i actually want thet url-regex , how i am going to configure it . Kindly help
{% for i in a %} <a href="{{i}}">Click</a><br/> {% endfor %}{{ i }}is not an id, its just uri. Do you want to go to the uri?