diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2012-03-20 01:31:26 -0400 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2012-03-20 01:31:26 -0400 |
commit | 1e02793154468049df916464375689ee51456e8f (patch) | |
tree | 908e967f10daa6b2fd65a5da9250ad1c9e1fcc74 /pecan/scaffolds | |
parent | 5cce383ae4ba64cc732d2d118ec4bc669a0df663 (diff) | |
download | pecan-1e02793154468049df916464375689ee51456e8f.tar.gz |
Implementing the `force_canonical = True` default in a cleaner way.
Diffstat (limited to 'pecan/scaffolds')
-rw-r--r-- | pecan/scaffolds/base/+package+/app.py_tmpl | 2 | ||||
-rw-r--r-- | pecan/scaffolds/base/+package+/tests/config.py_tmpl | 1 | ||||
-rw-r--r-- | pecan/scaffolds/base/config.py_tmpl | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/pecan/scaffolds/base/+package+/app.py_tmpl b/pecan/scaffolds/base/+package+/app.py_tmpl index 2b2ec7e..fc1da50 100644 --- a/pecan/scaffolds/base/+package+/app.py_tmpl +++ b/pecan/scaffolds/base/+package+/app.py_tmpl @@ -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) ) diff --git a/pecan/scaffolds/base/+package+/tests/config.py_tmpl b/pecan/scaffolds/base/+package+/tests/config.py_tmpl index 55bfaac..ba71dac 100644 --- a/pecan/scaffolds/base/+package+/tests/config.py_tmpl +++ b/pecan/scaffolds/base/+package+/tests/config.py_tmpl @@ -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', diff --git a/pecan/scaffolds/base/config.py_tmpl b/pecan/scaffolds/base/config.py_tmpl index 1f2cb50..481d846 100644 --- a/pecan/scaffolds/base/config.py_tmpl +++ b/pecan/scaffolds/base/config.py_tmpl @@ -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', |