def generate_settings(dev=False):
 context = {'secret_key': generate_secret_key(), 'debug_flag': dev, 'mail.backend': ('console' if dev else 'smtp')}
 py = (load_config_template(DEFAULT_SETTINGS_OVERRIDE, 'default') % context)
 yaml = (load_config_template(DEFAULT_SETTINGS_CONF, 'default') % context)
 return (py, yaml)

def generate_settings ( dev = False ) : context = { 'secret_key' : generate_secret_key ( ) , 'debug_flag' : dev , 'mail.backend' : ( 'console' if dev else 'smtp' ) } py = ( load_config_template ( DEFAULT_SETTINGS_OVERRIDE , 'default' ) % context ) yaml = ( load_config_template ( DEFAULT_SETTINGS_CONF , 'default' ) % context ) return ( py , yaml )
this command is run when default_path doesnt exist .