[Answered ]-Django context processors and URL arguments

2👍

✅

You can access the URL parameters via request through the resolver_match attribute. So for instance you can do request.resolver_match.kwargs['id'] to get the ID kwarg.

Leave a comment