Hi guys,
I would like to be able to add dynamically django forms in my formset with Add button.
I tried to write different things but I don't overcome to get the expected result up to now.
I have a formset defined in my forms.py file :

Then, I created in my views.py file this function :

Finally, I'm trying to write my template file :

And I have javascript function :

I spent lot of time in order to get the expected result but I don't overcome to get it. S I need your help if you could help me.
I don't want to use another library, but I accept JS, AJAX, JQuery or Django answers !
The issue is :
It displays the first form, but when I want to add a second one by clicking on `Add button`, it doesn't create the second one.
So I assume my Django part is good, but not the JS part ?
Thank you by advance