Pyramids Route_url With Additional Query Arguments
In Pyramids framework, functions route_path and route_url are used to generate urls from routes configuration. So, if I have route: config.add_route('idea', 'ideas/{idea}') I am a
Solution 1:
You can add additional query arguments to url passing the _query
dictionary
request.route_url('idea', idea='great', _query={'sort':'asc'})
Post a Comment for "Pyramids Route_url With Additional Query Arguments"