From edde347b30bc8bb81795c0c0885b6e3c09931f3e Mon Sep 17 00:00:00 2001 From: Sean Hammond Date: Wed, 10 Oct 2012 14:21:48 +0200 Subject: [PATCH] Remove duplicate debug setting from deployment.ini_tmpl deployement.ini_tmpl had debug = true at the top and then set debug = false further down was overriding it. Set debug only once. Also since this is deployment.ini_tmpl make the default debug = false and tell people to set it true for development, not vice-versa. --- ckan/config/deployment.ini_tmpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ckan/config/deployment.ini_tmpl b/ckan/config/deployment.ini_tmpl index b2983190913..709c80fc7d6 100644 --- a/ckan/config/deployment.ini_tmpl +++ b/ckan/config/deployment.ini_tmpl @@ -4,7 +4,12 @@ # The %(here)s variable will be replaced with the parent directory of this file # [DEFAULT] -debug = true + +# Change debug to true when doing CKAN development, it enables Pylons' +# interactive debugging tool, makes Fanstatic serve unminified JS and CSS +# files, and enables CKAN templates' debugging features. +debug = false + email_to = you@yourdomain.com smtp_server = localhost error_email_from = paste@localhost @@ -32,11 +37,6 @@ ckan.plugins = stats #beaker.cache.data_dir = %(here)s/data/cache #beaker.session.data_dir = %(here)s/data/sessions -# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* -# Debug mode will enable the interactive debugging tool, allowing ANYONE to -# execute malicious code after an exception is raised. -set debug = false - # Specify the database for SQLAlchemy to use: # * Postgres is currently required for a production CKAN deployment # * Sqlite (memory or file) can be used as a quick alternative for testing