flask Flashcards
1
Q
whar are the 4 different request hooks
A
before request, before first request, after request, teardown request
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.
3
Q
what are common jinja2 variable types?
A
strings, list, dictionary, objects