On 11 janv. 2015, at 09:43, Russell Keith-Magee <
rus...@keith-magee.com> wrote:
> However, I'd still have some concerns about a project template that took out all the "useful" utilities, and required users to remember the exact spelling of half a dozen builtins to have functionality that would have historically been automatic.
I would argue that many of them are only useful in a very loose sense :-) and the most obviously useful one, request, is omitted.
I added the tz processor for consistency with the i18n processor but I never used it and I don’t think it’s needed.
I don’t remember using on the i18n processor either. Perhaps some i18n features implicitly depend on it. I would have to check.
The media and static processor enable obsolete template coding style. We shouldn’t encourage their use.
Without having spent much time to research the consequences — it's on my TODO list but Collin brought it up before I investigated — my straw man proposal is:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
--
Aymeric.