﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36091	add absolute_url template tag	sblondon		"Django provides 'Model.get_absolute_url()' and template tag '{% url %}' to create URLs in templates.
'{% url %}' is usable on every path if 'name' parameter is defined. Unfortunately, Django does not provide a way to create an absolute URL (if not based on Model) in template. This needs occurs regularly.

Of course, it's possible to write something like '{{ base_url }}{{ url ""app.name"" }}' with some setup.

A cleaner way is to set up a 'absolute_url' template tag.

People shows implementations of such template tag like:
https://stackoverflow.com/questions/52193142/how-to-generate-absolute-urls-in-django-2-templates
https://stackoverflow.com/questions/19024159/how-to-reverse-a-name-to-a-absolute-url-in-django-template

Someone already created a library for this need 11 years ago:
https://github.com/bartgryszko/django-absoluteurl

I think it would be better to include it inside Django.
What do you think about it?

I can a PR with test and documentation.
"	New feature	closed	Template system	5.1	Normal	duplicate			Unreviewed	0	0	0	0	0	0
