How To Get Parameters From Current Url
Is it possible to get an specific parameter in a url and use it in a template ? `{{ request.path }} It gets the whole url, i need only the 'pk' parameter, to make a link to another
Solution 1:
I did some experiments and find that this may help:
{{ request.resolver_match.kwargs.pk }}
For more info you can check this.
Post a Comment for "How To Get Parameters From Current Url"