Jun-17-2020, 07:38 AM
(This post was last modified: Jun-17-2020, 07:38 AM by card51shor.)
Yes I know what keyword arguments are and what parameters to a function are. Why is it using this line @app.route('/hello/<name>')? def hello(name=None): Why is name being declared as none as a parameter? So that it just says "Hello World"?
I just don't see where name is in the paragraph above my first example, which is this :
I was experimenting with code last night - i was just getting errors and being frustrated so I just reset to my working code. So now I don't have that. It wasn't anything useful anyways.
I don't think it applies to my project because it isn't getting a user value that is a list and displaying it on the screen. Most importantly - It's not showing me the HTML.
So If I can't understand how to do what I have to do after reading that page 3 times - I should quit? Ask you guys for help? What should I do?
It's really that easy? I'm just totally missing it? All the info I need is right there?
I'm not trying to be snarky, by the way. I honestly want to know - if I still don't get it - am I an idiot? Is it that easy to understand? Most people could read those instructions and know how to start coding what I have to do?
I just don't see where name is in the paragraph above my first example, which is this :
from flask import request @app.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'POST': return do_the_login() else: return show_the_login_form()Where is "name" referenced?
I was experimenting with code last night - i was just getting errors and being frustrated so I just reset to my working code. So now I don't have that. It wasn't anything useful anyways.
I don't think it applies to my project because it isn't getting a user value that is a list and displaying it on the screen. Most importantly - It's not showing me the HTML.
So If I can't understand how to do what I have to do after reading that page 3 times - I should quit? Ask you guys for help? What should I do?
It's really that easy? I'm just totally missing it? All the info I need is right there?
I'm not trying to be snarky, by the way. I honestly want to know - if I still don't get it - am I an idiot? Is it that easy to understand? Most people could read those instructions and know how to start coding what I have to do?