On Apr 23, 6:43 pm, Shawn Milochik <sh...@milochik.com> wrote: > It occurs to me now that I could just use a placeholder, and replace > that in JavaScript: > <a href="{% url update_payment 'payment_id' %}">Update Payment</a> > > Then use the JavaScript to replace the string 'payment_id' (or a regex > on its location in the URL) when the user takes action. It also moves > all of the logic out of views and urls, which I think is probably > best.
This is exactly what I have been doing. It is bit of a hack, but works very well in practice. - Anssi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.