How to get the current urlname using Django?
- by e-satis
I have to build an url dynamically according to the current url. Uring the {% url %} is the easiest way to do it, but I need the current url name to do so.
How can I get the url name attached to the urlconf that leads to the current view?