You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
455 B
15 lines
455 B
''' views (sub) package for ordr ''' |
|
|
|
|
|
def includeme(config): |
|
''' |
|
Initialize the views in a Pyramid app. |
|
|
|
Activate this setup using ``config.include('ordr2.views')``. |
|
''' |
|
settings = config.get_settings() |
|
age = int(settings.get('static_views.cache_max_age', 3600)) |
|
|
|
config.add_static_view('static', 'ordr:static', cache_max_age=age) |
|
config.add_static_view('deform', 'deform:static', cache_max_age=age) |
|
config.scan()
|
|
|