#NEWLINE# def load_template_source( self , template_name , template_dirs = None ) : #NEWLINE# #INDENT# if ( ':' not in app ) : #NEWLINE# #INDENT# raise TemplateDoesNotExist ( ) #NEWLINE# #UNINDENT# ( app_name , template_name ) = template_name . split ( ':' , 1 ) #NEWLINE# try : #NEWLINE# #INDENT# app = get_app ( app_name ) #NEWLINE# #UNINDENT# except ImproperlyConfigured : #NEWLINE# #INDENT# raise TemplateDoesNotExist ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# app_dir = path . dirname ( app . __file__ ) #NEWLINE# app_templ_dir = path . join ( app_dir , 'templates' ) #NEWLINE# if ( not path . isdir ( app_templ_dir ) ) : #NEWLINE# #INDENT# raise TemplateDoesNotExist ( ) #NEWLINE# #UNINDENT# return FileSystemLoader . load_template_source ( self , template_name , template_dirs = [ app_templ_dir ] )