my question is, what´s the better way to pass a value from a javascript function to django view.

I have a template where I get a value through a javascript function, and I want to pass that value to a django view.