Cara mendapatkan url halaman saat ini di template django
{{ request.build_absolute_uri }} #Domain, path and querystring
Mighty Unicorn
{{ request.build_absolute_uri }} #Domain, path and querystring
{{ request.path }} # -without GET parameters
{{ request.get_full_path }} # - with GET parameters