Hi there,
I am really stuck with an issue with my flask application that has arisen when I have uploaded my application onto the pythonanywhere servers although does not occur when I run it through my local host. When using pythoanywhere, though I am able to add database entries, I cannot delete or update them because the flask session keeps changing. The error message I am getting in the log appears when I try to delete a post and is as follows:
InvalidRequestError: Object '<Post at 0x7f47a968d350>' is already attached to session '1' (this is '5')
I was hoping that someone might have had a similar issue and would be able to offer me some guidance because I am having a lot of trouble trying to get this working at the moment.
Thanks