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

java - org.apache.http.ProtocolException: Target host is not specified -

Powerbuilder 12.1 and DataWindow in Design vs Debug and Executable/Runtime -

css3 - HTML Block Anchor element only half clickable in Chrome -