pass form value to url in template

Hi all
I try to pass form value to url in html template as :
a href=“{% url ‘addrealestatepic’ {{form1.identifier}} %}”

I send form value from view.py as :
return render(request,‘realestate/addrealestate.html’,{‘form1’: form1,})
I use url as : path(‘addrealestatepic/uuid:identifier/’,views.addrealestatepic,name=‘addrealestatepic’),

it give me error

what is the correct syntex ??

You don’t need to enclose variables in {{ }} when using them in tags. The variable reference would just be form1.identifier.

Note: For future reference when asking about an error, please post the actual error message you are receiving, along with the traceback generated.