Take the 2-minute tour ×

Is there a quick way to submit (pre-defined) POST data from a hyperlink in a Django template? I've got an 'add this to my favourites' link on page. I'm currently doing this with a GET request, which obviously breaks all kinds of rules.

I could manually build a form and have the link submit it with Javascript. I'm looking for an automatic way to do the same thing, essentially the equivalent of Rails' button_to.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Not that I can find. Sounds like a good candidate for a template tag and sharing.

share|improve this answer

Your Answer


