A
A
Anton Degtyarev2018-01-11 01:37:03
Flask
Anton Degtyarev, 2018-01-11 01:37:03

How to handle requests like localhost:5000/foo?id=1?

Greetings.
There is a certain table formed by flask-table, in the table there is a column with link generation
url = LinkCol('Details', 'foo', url_kwargs=dict(id='id') ,attr='name').

It creates links like localhost:5000/foo?id=1
How do I let python know that I requested an id of 1?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2018-01-11
@RenOoise

flask.pocoo.org/docs/0.12/quickstart/#the-request-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question