Hot answers tagged


forms have a default of submission, if not specified destination , then to the link from which the get request(meaning from location, from where form came) . so just do event.preventdefault


So, this is what I might class a 'half answer'. I'm still not entirely sure why I was getting an error with the timestamp string being incorrectly formatted as the governing documentation for strftime suggested it was fine. Nevertheless, I initially commented out that particular line within the Model in order to sense check that this was definitely what was ...


This is probably not relevant to you anymore, but I had the same bug, and stumbled upon this question when googling, so it might help other people with this bug. So you're calling load_mailbox('sent') at the end of your function for sending emails, right? As far as I can tell, the problem is that when you call load_mailbox('sent'), the new email you just ...


I think it's because of how UNIX and Windows format their timestamps. From The Python docs contain all the format codes that the C standard (1989 version) requires, and these work on all platforms with a standard C implementation. Note that the 1999 version of the C standard added additional format codes. These include codes for non-...


I had that problem too! well I don't know why but in Windows I got same error but in Mac OS it runs without any problem... You can fix it by replacing timestamp line with: "timestamp": self.timestamp.strftime("%A, %d. %B %d/%m/%Y %I:%M%p"), I just changed the format of the timestamp and it worked! hope this answer helps you:)

Only top voted, non community-wiki answers of a minimum length are eligible