#NEWLINE# def get_app_n_model( settings_entry_name ) : #NEWLINE# #INDENT# 'Returns tuple with application and tree[item] model class names.' #NEWLINE# try : #NEWLINE# #INDENT# ( app_name , model_name ) = getattr ( settings , settings_entry_name ) . split ( '.' ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ImproperlyConfigured ( ( '`SITETREE_%s` must have the following format: `app_name.model_name`.' % settings_entry_name ) ) #NEWLINE# #UNINDENT# return ( app_name , model_name )