﻿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
17368	Document django.template.add_to_builtins() or provide a standard way to add template tags from view code	anatoly techtonik <techtonik@…>	nobody	"https://docs.djangoproject.com/en/dev/howto/custom-template-tags/

Currently, you need an obligatory `{% load %}` tag in all you templates if you want to use custom application tags. That's inconvenient. There is a `django.template.add_to_builtins()` function that accepts a string argument - a module name, which solves the problem. But this function is:

  1. Undocumented
  2. Module name is not convenient

I propose the following mechanism:

{{{
from codereview import customtags

django.template.add_library(customtags, default=True)
}}}
"	Uncategorized	closed	Template system	1.3	Normal	duplicate			Unreviewed	0	0	0	0	0	0
