# HG changeset patch # User Daniel Dourvaris # Date 2016-06-06 14:27:04 # Node ID 1372c5bbfad1e1ee7604a626d3670330dcf117ad # Parent 967dd702924e36922cdac351f6b94f84112492bd javascript: add default value for js generate ini option diff --git a/rhodecode/config/environment.py b/rhodecode/config/environment.py --- a/rhodecode/config/environment.py +++ b/rhodecode/config/environment.py @@ -82,7 +82,7 @@ def load_environment(global_conf, app_co config['routes.map'] = make_map(config) - if asbool(config['generate_js_files']): + if asbool(config.get('generate_js_files', 'false')): jsroutes = config['routes.map'].jsroutes() jsroutes_file_content = generate_jsroutes_content(jsroutes) jsroutes_file_path = os.path.join(