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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s Flask basic structure?

A
  • app.py
  • templates/ (where the html files go)
  • requirements.txt (libraries)
  • static/ (imgs, CSS, so on)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why client-side form validation should never be relied upon alone?

A

Because the form fields can be manipulated on the DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What kind of validation should be used in conjunction with client-side form validation?

A

Server-side validation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do APIs do?

A

They specify how to interact with web-based services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Ajax?

A

It’s a technique that enables to get data from the server without submitting forms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What’s a decorator?

A

A decorator associates a particular function with a particular URL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly