Flask Flashcards
1
Q
What is URL mapping/routing?
A
The process of determining how a web server response to a request for a specific URL
2
Q
What is a decorator in Python?
A
A function that takes another function as an argument and returns the new function that typically extends or alters the behavior of the original function.
3
Q
Why is POST considered more secure than GET?
A
Because it doesn’t put data in the url parameter.
4
Q
What is the statement placeholder for Jinja2?
A
{% %}
5
Q
What is the expression placeholder for Jinja2?
A
{{ }}
6
Q
What does typing “flask run” in the terminal do?
A
It runs flask
7
Q
What does typing “http-server” in the terminal do?
A
It runs http