flask Flashcards

1
Q

whar are the 4 different request hooks

A

before request, before first request, after request, teardown request

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

what is the difference between the following two request hooks: after request and teardown request

A

after request is called only if there is no exception, teardown is called regardless of whether there is an exception or not. To clarfiy, both are called after each request.

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

what are common jinja2 variable types?

A

strings, list, dictionary, objects

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