Python X 🐍
42 subscribers
25 photos
2 videos
9 files
188 links
Download Telegram
if u r using flask 2.0 u can use thing like.


@app.get('/name_of_route')
@app.post('/name_of_route')
def view_func:
if request.method == 'POST':
send_mail()
return "something"



Snippet given below works for 1.1.x as well 2.x


@app.route('/name_of_route', methods=['GET', 'POST'])
def view_func:
if request.method == 'POST':
send_mail()
return "something"


Source
Don't use input() in development.
I am sending you 1π! Pi is a new digital currency developed by Stanford PhDs, with over 10 million members worldwide. To claim your Pi, follow this link https://minepi.com/SmartManoj and use my username (SmartManoj) as your invitation code.
Forwarded from Deleted Account
Forwarded from AI Agents 🔥
GitHub Copilot · Your AI pair programmer