elections.cfg | 7 +++++++
examples/elections.wsgi | 6 ------
2 files changed, 7 insertions(+), 6 deletions(-)
New commits:
commit fea2fc590a1907119e3385f7a19fdec4999d151f
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Tue Sep 22 18:24:57 2009 -0700
Move config from the wsgi script into the config file.
diff --git a/elections.cfg b/elections.cfg
index 5705ee0..b344223 100644
--- a/elections.cfg
+++ b/elections.cfg
@@ -44,10 +44,17 @@ autoreload.package="elections"
# Auto-Reload after code modification
# autoreload.on = True
+server.log_to_screen = True
+
# Set to True if you'd like to abort execution if a controller gets an
# unexpected parameter. False by default
tg.strict_parameters = True
+server.webpath = '/elections'
+base_url_filter.on = True
+base_url_filter.base_url='http://localhost/elections'
+base_url_filter.use_x_forwarded_host = False
+
# LOGGING
# Logging configuration generally follows the style of the standard
# Python logging module configuration. Note that when specifying
diff --git a/examples/elections.wsgi b/examples/elections.wsgi
index a62b4d5..d6bf54a 100644
--- a/examples/elections.wsgi
+++ b/examples/elections.wsgi
@@ -20,12 +20,6 @@ from turbogears import startup
from fedora.tg.util import enable_csrf
turbogears.update_config(configfile="/etc/elections.cfg",
modulename="elections.config")
-turbogears.config.update({'global': {'server.environment':
'production'}})
-turbogears.config.update({'global': {'autoreload.on': False}})
-turbogears.config.update({'global': {'server.log_to_screen': False}})
-turbogears.config.update({'global': {'server.webpath':
'/elections'}})
-#turbogears.config.update({'global': {'base_url_filter.on': True}})
-#turbogears.config.update({'global': {'base_url_filter.base_url':
'http://localhost/elections'}})
startup.call_on_startup.append(enable_csrf)
Show replies by date