Skip to content

Commit

Permalink
Don't use the static view name, reserve it for the application
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 2, 2023
1 parent 0025a2b commit 3d4474b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2cwsgiutils/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3d4474b

Please sign in to comment.