template_loader ¤
Template loader that loads templates from each Django app's "components" directory.
Classes:
-
Loader–
Loader ¤
Bases: Loader
Methods:
-
get_dirs–Prepare directories that may contain component files:
get_dirs ¤
Prepare directories that may contain component files:
Searches for dirs set in COMPONENTS.dirs settings. If none set, defaults to searching for a "components" app. The dirs in COMPONENTS.dirs must be absolute paths.
In addition to that, also all apps are checked for [app]/components dirs.
Paths are accepted only if they resolve to a directory. E.g. /path/to/django_project/my_app/components/.
BASE_DIR setting is required.