get current url get variables django code example
Example: how to get the current url path in django template
{{ request.path }} # -without GET parameters
{{ request.get_full_path }} # - with GET parameters
{{ request.path }} # -without GET parameters
{{ request.get_full_path }} # - with GET parameters