Hi Marc,

2014-11-04 13:09 GMT+01:00 Marc Tamlyn <[email protected]>:
>
> It would be preferable to have the backend configuration outside of
> `django.template`. `django.templating` seems reasonable, but even
> `django.template_backends` might be appropriate as it only contains
> backends.
>

See my answer to Carl's email.

Assuming we go for the "subdirectory" based convention for app directories
> (option 4?) it would seem appropriate to make this configurable. In
> particular I can imagine a possibility where you may want multiple
> instances of the same backend with different configuration (e.g. different
> jinja extensions which conflict to support multiple pluggable apps). The
> loading problem is the only obvious flaw I can see here. It's a weird use
> case though.
>

Configuring the subdirectory doesn't save you if two conflicting apps ship
their templates in identically named subdirectories.

In that situation you could configure a backend that has the subdirectory
containing the templates for a conflicting app in DIRS and another backend
that deals with the other conflicting app. It's messy, but so is the use
case :-)

I agree the DEP needs to specify more clearly what happens with `render`
> and friends.
>

Yes, I'll add a paragraph about shortcuts and another about template
responses in the implementation section.


> I also think there's potential merit to Option 1 (engine=) support on
> these APIs even with Option 4 - there may be times you need to force the
> use of a particular engine.
>

Yes, option 1 is included in my proposal.

-- 
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/CANE-7mXaXLMnx%2BPu-fbNjjSzLZhYZDk-8Xebhn0DjiPEV1067A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to