. This can be done by specifying an empty pattern and setting the new argument inherit_slash=True. For example: with config.route_prefix_context('/users'): config.add_route('users', '', inherit_slash=True) In the example, the resulting pattern will be /users. Similarly, if the route ...
In the example, the resulting pattern will be /users. Similarly, if the route prefix were /users/ then the final pattern would be /users/. If the pattern was '/', then the final pattern would always be /users/. This new setting is only available if the pattern supplied to add_route...
The pyramid.config.Configurator.add_route method now supports being called with an external URL as pattern. See Pylons#611 and the documentation section in the "URL Dispatch" chapter entitled "External Routes" for more information.Bug Fixes
The pyramid.config.Configurator.add_route method now supports being called with an external URL as pattern. See Pylons#611 and the documentation section in the "URL Dispatch" chapter entitled "External Routes" for more information.Bug Fixes
The pyramid.config.Configurator.add_route method now supports being called with an external URL as pattern. See Pylons#611 and the documentation section in the "URL Dispatch" chapter entitled "External Routes" for more information.Bug Fixes
The pyramid.config.Configurator.add_route method now supports being called with an external URL as pattern. See Pylons#611 and the documentation section in the "URL Dispatch" chapter entitled "External Routes" for more information.Bug Fixes
. This can be done by specifying an empty pattern and setting the new argument inherit_slash=True. For example: with config.route_prefix_context('/users'): config.add_route('users', '', inherit_slash=True) In the example, the resulting pattern will be /users. Similarly, if the route ...
The pyramid.config.Configurator.add_route method now supports being called with an external URL as pattern. See Pylons#611 and the documentation section in the "URL Dispatch" chapter entitled "External Routes" for more information.Bug Fixes
The pyramid.config.Configurator.add_route method now supports being called with an external URL as pattern. See Pylons#611 and the documentation section in the "URL Dispatch" chapter entitled "External Routes" for more information.Bug Fixes