@cached_property<EOL><INDENT>def app_templates_dirs(self):<DEDENT>
app_templates_dirs = OrderedDict()<EOL>for app_config in apps.get_app_configs():<EOL><INDENT>templates_dir = os.path.join(<EOL>getattr(app_config, '<STR_LIT:path>', '<STR_LIT:/>'), '<STR_LIT>')<EOL>if os.path.isdir(templates_dir):<EOL><INDENT>templates_dir = upath(templates_dir)<EOL>app_templates_dirs[app_config.name] = templates_dir<EOL>app_templates_dirs[app_config.label] = templates_dir<EOL><DEDENT><DEDENT>return app_templates_dirs<EOL>
Build a cached dict with settings.INSTALLED_APPS as keys
and the 'templates' directory of each application as values.