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.
10 lines
382 B
10 lines
382 B
def includeme(config): |
|
"""Initialize routes in a Pyramid app. |
|
|
|
Activate this setup using ``config.include('ordr3.routes')``. |
|
|
|
""" |
|
settings = config.get_settings() |
|
age = int(settings.get("static_views.cache_max_age", 3600)) |
|
config.add_static_view("static", "static", cache_max_age=age) |
|
config.add_static_view("deform", "deform:static", cache_max_age=age)
|
|
|