I have a fundamental question. Let's say I have a function like
def mypage():
form = a_lot_of_calculations_and_db_accesses()
if form.process().accepted:
do_something()
return dict(form=form)The part a_lot_of_calculations_and_db_accesses() runs twice: first time to prepare the page and a second time to handle the responses. Is there any way to avoid these double call of a_lot_of_calculations_and_db_accesses()? Regards, Martin --

