I\'m using the onclick attribute in Django HTML templates to dynamically set arguments to JavaScript function calls, like this:
onclick