#NEWLINE# def _render_message_subject( self , context ) : #NEWLINE# #INDENT# template_name = self . _subject_template_name . format ( ext = _get_template_extension ( ) , name = self . name ) #NEWLINE# try : #NEWLINE# #INDENT# subject = loader . render_to_string ( template_name , context ) #NEWLINE# #UNINDENT# except TemplateDoesNotExist as e : #NEWLINE# #INDENT# raise exc . TemplateNotFound ( "Template '{0}' does not exists." . format ( e ) ) #NEWLINE# #UNINDENT# return ' ' . join ( subject . strip ( ) . split ( ) )