I agree with Mariusz. Moreover, the app directories loader class is really small. You can create a project-specific version in 3 lines, if you need:
class Loader(FilesystemLoader): def get_dirs(self): return get_app_template_dirs("email-templates") On Tue, May 10, 2022 at 6:27 AM Mariusz Felisiak <felisiak.mari...@gmail.com> wrote: > Hi, > > Thanks for the proposition. I'm not sure why the new option is better > than using subdirectories in *"templates" *e.g. *"templates/mail/".* > > Best, > Mariusz > > -- > 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 django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/fb7408c2-aa2d-4dfb-a624-a042a68e5b55n%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/fb7408c2-aa2d-4dfb-a624-a042a68e5b55n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM0D4n_1yDrjxZ%3Dx7ZVzcnyMz3u7nSp1avGcamQdkz81HQ%40mail.gmail.com.