#NEWLINE# def _update_settings( self , website ) : #NEWLINE# #INDENT# local_settings_path = join ( dirname ( website . settings_path ) , 'local_settings.py' ) #NEWLINE# options = { #NEWLINE# #INDENT# 'settings_file' : splitext ( split ( website . settings_path ) [ ( - 1 ) ] ) [ 0 ] , #NEWLINE# 'settings' : website . settings , #NEWLINE# #UNINDENT# } #NEWLINE# result = self . update_file ( 'local.settings.template' , local_settings_path , owner = website . user , options = options , sudo = True ) #NEWLINE# return local_settings_path