In my project I have a lot of Ajax methods, with external client-side scripts (I don\'t want to include JavaScript into templates!) and changing URLs is kind of pain for me
You can remove the parameters from the URL, and pass the dynamic parts as query parameters:
$('#add-choice-button').on('click', function () { var thing_id = $(this).closest('.thing').attr('data-item-id'); $.get('{% url 'addThing' %}?t='+thing_id, function (data) { ... }); });