I have a 'a tag' such like this.
<a href="{% 'mains:index' %}" name="getData">button</a>
If I click this button, i want to send parameter name "getData" like below, but it does not work.
views.py
def index(request):
result = request.GET.get('getData')
how can I get prameter from template by a tag, and how can using in views.py? return = render(request, 'mains/index.html', 'result':result)
if my question is confused, just ask me plz.