T
T
TheMergus2020-01-24 16:35:05
Flask
TheMergus, 2020-01-24 16:35:05

Get passed data get?

Hello, how to get sent data through flask?
For example, there is a link: mysite.com/test?user=152&pass=111
How to display user and pass values ​​in the console?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2020-01-24
@TheMergus

from flask import request
    user = request.args.get('user')
    passw = request.args.get('passw')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question