|
|
|
@ -14,6 +14,9 @@ def includeme(config):
@@ -14,6 +14,9 @@ def includeme(config):
|
|
|
|
|
''' adding request helpers and static views ''' |
|
|
|
|
config.add_request_method(flash, 'flash') |
|
|
|
|
|
|
|
|
|
config.add_static_view('static', 'ordr2:static', cache_max_age=3600) |
|
|
|
|
config.add_static_view('deform', 'deform:static') |
|
|
|
|
settings = config.get_settings() |
|
|
|
|
age = int(settings.get('static_views.cache_max_age', 3600)) |
|
|
|
|
|
|
|
|
|
config.add_static_view('static', 'ordr2:static', cache_max_age=age) |
|
|
|
|
config.add_static_view('deform', 'deform:static', cache_max_age=age) |
|
|
|
|
|
|
|
|
|