From ad10c12aff15a403f16af371a309b4d3c88be00d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 2 Oct 2023 14:24:40 +0200 Subject: [PATCH] Don't use the static view name, reserve it for the application --- c2cwsgiutils/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c2cwsgiutils/index.py b/c2cwsgiutils/index.py index f9f8b309d..695e58f21 100644 --- a/c2cwsgiutils/index.py +++ b/c2cwsgiutils/index.py @@ -488,7 +488,7 @@ def includeme(config: pyramid.config.Configurator) -> None: """Initialize the index page.""" base_path = config_utils.get_base_path(config) if base_path != "": - config.add_static_view(name="static", path="c2cwsgiutils:static") + config.add_static_view(name="c2c_static", path="c2cwsgiutils:static") config.include("pyramid_mako") config.add_route("c2c_index", base_path, request_method=("GET", "POST")) config.add_view(_index, route_name="c2c_index", http_cache=0, renderer="./templates/index.html.mako")