python - Simple App Routing Flask -


क्यों जा रहा / अपलोड / स्टैक 1234 मुझे 404 त्रुटि दे?

  filed = "Stack1234" @ app.route ('/ अपलोड / & lt; दायर & gt;') def stack (): return render_template ('filed.html')  

स्टैक () में तर्क परिभाषित होना चाहिए। इसे एक वैश्विक चर के रूप में परिभाषित करने की आवश्यकता नहीं है।

  @ app.route ('/ अपलोड / & lt; दायर किया गया & gt;') डेफ स्टैक (दायर): return render_template ('filed.html')  

Comments

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -