When editing an entry, if there is a long wait, let me say a few minutes (drink coffee) and then return to press the save button (POST), I will be redirected to the main page to enter the system, and the data is lost.
The checkout check session seems to be expiring too quickly.
I did some research and came across this.
from flask import session, app session.permanent = True
Is this the right way? But even when I try to do this, I get this exception:
File "/Users/kave/workspace/F11A/src/application/__init__.py", line 14, in <module> session.permanent = True File "/Users/kave/workspace/F11A/src/lib/werkzeug/local.py", line 355, in <lambda> __setattr__ = lambda x, n, v: setattr(x._get_current_object(), n, v) File "/Users/kave/workspace/F11A/src/lib/werkzeug/local.py", line 297, in _get_current_object return self.__local() File "/Users/kave/workspace/F11A/src/lib/flask/globals.py", line 20, in _lookup_req_object raise RuntimeError('working outside of request context') RuntimeError: working outside of request context
source share