You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app_directories.py 313B

1234567891011121314
  1. """
  2. Wrapper for loading templates from "templates" directories in INSTALLED_APPS
  3. packages.
  4. """
  5. from django.template.utils import get_app_template_dirs
  6. from .filesystem import Loader as FilesystemLoader
  7. class Loader(FilesystemLoader):
  8. def get_dirs(self):
  9. return get_app_template_dirs('templates')