Задать вопрос

Тел: +7 965 3737 888

462

Просмотров

0

Ответов

RequestStack middleware

This is some very simple middleware that keeps track of the last 3 succesful requests for each visitor. This can be useful if you want to redirect the visitor to a previous path without relying on a hidden field in a form, or if you simply want to check if a visitor has recently visited a certain path.

Note that this relies on the session framework and visitors actually accepting cookies.

This can be easily modified to hold more requests if you have a need for it.

Вопрос полезен? Да0/Нет0
file_3633.py(738.0б)
None