Implementing the force_canonical = True default in a cleaner way.
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user