Skip to content

Commit

Permalink
Merge pull request #1980 from camptocamp/static-route
Browse files Browse the repository at this point in the history
Don't use the static view name, reserve it for the application
  • Loading branch information
sbrunner authored Oct 2, 2023
2 parents ebddc6b + ad10c12 commit 04e90dc
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 04e90dc

Please sign in to comment.