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) +