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

Folder list php -

GO: Serve static pages -

python - Why can't I destroy my StaticText in wxPython? -