Hi Preston, On 7 nov. 2014, at 18:51, Preston Timmons <[email protected]> wrote:
> First, if multiple engines are configured, how do you see the error being > displayed if a template isn't found in any of them? Currently, this > originates from the template loaders. For instance, the filesystem loader > raises a TemplateDoesNotExist with a list of templates it tried. Django will still raise the same TemplateDoesNotExist exception. I think I’ll build an error message by concatenating exceptions raised by each engine. > Second, if I want to get a template from within a script, do I have to > manually loop through the engines? Or is there a higher-level get_template > that encapsulates this? I will preserve public APIs, including: django.template.loader.get_template(template_name[, dirs]) django.template.loader.select_template(template_name_list[, dirs]) > Third, if I understand right, extending templates would only happen within > the template engine that found the template. That means if multiple Django > template engines were specified, the extends tag would not extend templates > from other Django engines, even when specified. Is this correct? Yes, that’s correct. -- 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/7705059D-3302-4F60-97B2-AF45C28BD102%40polytechnique.org. For more options, visit https://groups.google.com/d/optout.
