Skip to main content
4 events
when toggle format what by license comment
Apr 14, 2017 at 13:26 vote accept 江泽民
Apr 14, 2017 at 13:23 comment added 江泽民 Okay, thank you very much. I found my mistake. Maybe it's because I am too sleepy(I haven't slept for 20 hours). This problem is in my 'buy.html'. <form action="{{ url_for('login') }}" method="post"> I forgot to modify it. Hum, maybe I should go to sleep. Anyway, Thank you for your help!
Apr 14, 2017 at 13:13 comment added 江泽民 Yup, the problem is that even if I put the print sentence under "if request.method == "POST" " I can't see it prints anything. But if I put this sentence under "else:", I can see the sentence. Because of that, I guess the programme doesn't execute POST part.
Apr 14, 2017 at 12:43 history answered DinoCoderSaurus CC BY-SA 3.0