Change route name for application html
authorFrank Bessou <frank.bessou@logilab.fr>
Wed, 12 Apr 2017 14:20:55 +0200
changeset 107 c16b57922fd5
parent 106 5a56c4dcfd25
child 108 37f79608e7a3
Change route name for application html This route name was conflicting with the root resource name provided by cubicweb-jsonschema.
demo/server/cubicweb_bookstore/pviews.py
--- a/demo/server/cubicweb_bookstore/pviews.py	Wed Apr 12 14:18:36 2017 +0200
+++ b/demo/server/cubicweb_bookstore/pviews.py	Wed Apr 12 14:20:55 2017 +0200
@@ -2,7 +2,7 @@
 
 
 @view_config(
-    route_name='root',
+    route_name='html_root',
     renderer='templates/index.jinja2',
 )
 def app_index(request):
@@ -17,5 +17,5 @@
 def includeme(config):
     config.include('pyramid_jinja2')
     config.add_static_view('static', 'static', cache_max_age=3600)
-    config.add_route('root', '/*subpath')
+    config.add_route('html_root', '/*subpath')
     config.scan()