Week 9 - Flask Flashcards
1
Q
What is Flask?
A
It’s a third-party library/framework that enables running Python on the server. It is similar to Django, but simpler
2
Q
What’s Flask basic structure?
A
- app.py
- templates/ (where the html files go)
- requirements.txt (libraries)
- static/ (imgs, CSS, so on)
3
Q
Why client-side form validation should never be relied upon alone?
A
Because the form fields can be manipulated on the DOM
4
Q
What kind of validation should be used in conjunction with client-side form validation?
A
Server-side validation
5
Q
What do APIs do?
A
They specify how to interact with web-based services
6
Q
What is Ajax?
A
It’s a technique that enables to get data from the server without submitting forms
7
Q
What’s a decorator?
A
A decorator associates a particular function with a particular URL