I'm talking about the function add_newtask. I don't understand why there are 2 add new task functions. The @post('/event/.... part is no longer in the current version of planner.py. I put that there when I was doing ajax testing. My fault, I should have commented above it saying what the purpose was. Regardless, it is no longer there. In my manual edits to your code, I have not included this function.