Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Query strings let us send arguments to our views, but they're often really long and kind of ugly. Your URLs shouldn't be ugly! Let's make them nicer by taking advantage of a Flask route shortcut.
Anything captured in a route argument will be a string unless you specify another type, so be careful with how you use the values. You can have multiple route arguments, too.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Em Noble
6,979 Points0 Answers
-
Ishita .
4,290 Points1 Answer
-
Ibrahim Khan
3,353 Points2 Answers
-
PLUS
Zheng Liu
Courses Plus Student 308 Points1 Answer
-
Akshay Madiwalar
1,992 Points2 Answers
-
Hasan Ahmad
6,727 Points1 Answer
-
Brian Patterson
19,588 Points0 Answers
-
Wu Ray
2,359 PointsWhy we still have to str(<value> from flask input) to return value?
Posted by Wu RayWu Ray
2,359 Points3 Answers
-
Naivedya Bansal
5,483 Points3 Answers
-
qasimalbaqali
17,839 Points5 Answers
-
Josip Dorvak
18,126 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up