1
vote
Accepted
Lecture 9, how to get default value from `flask.request.get` after submitting a form?
The form method is GET so all parameters are sent in the URL. The python method get finds the key, so does not default to "world". Some ways to change the behaviour:
add a test for empty ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
lectures × 34course-info × 7
cs50x × 4
week1 × 3
edx × 2
week2 × 2
pset4 × 1
pset3 × 1
c × 1
sql × 1
flask × 1
binary-search × 1
cs50-web-programming-with-python × 1
sort × 1
function × 1
submissions × 1
printf × 1
arrays × 1
float × 1
cs50x2018 × 1
getstring × 1
postgresql × 1
week9 × 1
week7 × 1
psets × 1