Implementing the force_canonical = True default in a cleaner way.

This commit is contained in:
Ryan Petrello
2012-03-20 01:31:26 -04:00
parent 5cce383ae4
commit 1e02793154
3 changed files with 1 additions and 3 deletions

View File

@@ -11,5 +11,5 @@ def setup_app(config):
template_path = config.app.template_path,
debug = getattr(config.app, 'debug', None),
logging = getattr(config.app, 'logging', None),
force_canonical = getattr(config.app, 'force_canonical', None)
force_canonical = getattr(config.app, 'force_canonical', True)
)

View File

@@ -10,7 +10,6 @@ app = {
'modules' : ['${package}'],
'static_root' : '%(confdir)s/../../public',
'template_path' : '%(confdir)s/../templates',
'force_canonical' : True,
'debug' : True,
'errors' : {
'404' : '/error/404',

View File

@@ -10,7 +10,6 @@ app = {
'modules' : ['${package}'],
'static_root' : '%(confdir)s/public',
'template_path' : '%(confdir)s/${package}/templates',
'force_canonical' : True,
'debug' : True,
'errors' : {
'404' : '/error/404',