@functools.lru_cache()
def get_app_template_dirs(dirname):
 template_dirs = []
 for app_config in apps.get_app_configs():
  if (not app_config.path):
   continue
  template_dir = os.path.join(app_config.path, dirname)
  if os.path.isdir(template_dir):
   template_dirs.append(template_dir)
 return tuple(template_dirs)

@ functools . lru_cache ( ) def get_app_template_dirs ( dirname ) : template_dirs = [ ] for app_config in apps . get_app_configs ( ) : if ( not app_config . path ) : continue template_dir = os . path . join ( app_config . path , dirname ) if os . path . isdir ( template_dir ) : template_dirs . append ( template_dir ) return tuple ( template_dirs )
return an iterable of paths of directories to load app templates from .