From df13a65727e945cc3694e754613f8bbe1bedd4e0 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 27 Sep 2017 16:43:03 +0200 Subject: [PATCH] moved static view config to views package --- ordr2/resources/__init__.py | 1 - ordr2/views/__init__.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ordr2/resources/__init__.py b/ordr2/resources/__init__.py index f8358bf..b577c27 100644 --- a/ordr2/resources/__init__.py +++ b/ordr2/resources/__init__.py @@ -33,4 +33,3 @@ def includeme(config): ''' config.set_root_factory(Root) - config.add_static_view('static', 'ordr2:static', cache_max_age=3600) diff --git a/ordr2/views/__init__.py b/ordr2/views/__init__.py index f3335b7..7b9e295 100644 --- a/ordr2/views/__init__.py +++ b/ordr2/views/__init__.py @@ -11,6 +11,8 @@ def flash(request, channel, message, description='', dismissable=True): def includeme(config): - ''' adding a request helper for views ''' + ''' adding request helpers and static views ''' config.add_request_method(flash, 'flash') + config.add_static_view('static', 'ordr2:static', cache_max_age=3600) +