Module 07 ยท Django Anatomy โ Lesson 3 of 3 ยท ~8 min
Same API, third framework
Porting /walkers/<id>
Flask's dynamic route was @app.route("/walkers/<walker_id>"). Django's path converters look almost the same, just inside path(...): <str:walker_id> captures a path segment as a string and passes it to the view as an argument โ the type prefix (str, int, ...) is new, but the idea is identical.