Answer the question
In order to leave comments, you need to log in
How to pass tokens to flask?
Hello everyone
Guys, tell me, who knows if it is possible to transfer a token from a web template that points to the current rendered template?
That is, you need to describe 2 functionals - adding values to the database and changing the values ​​in the database.
There are 2 identical templates for each action, but with different links (respectively, a different render ... within the framework of the project, this is convenient). But I don’t want to write an additional handler (and, in principle, I want to show off a little :) ) and just write a condition into the add function - if the token is the add template, do the addition, if the token is the change template - do the update
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question