On 11 janv. 2015, at 09:43, Russell Keith-Magee <[email protected]> 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.
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/D7435500-19F6-464B-804A-934F33592905%40polytechnique.org.
For more options, visit https://groups.google.com/d/optout.