problem description I have made a Wechat scan login function. After scanning the code successfully, determine whether the user exists in the database, and if not, add a user. Then perform a login_user (user), jump to the home page. It is found that if...
first of all, I am not good at English because python is very convenient to control some permissions of the local system, I just want to implement a web background management, which is mainly used to collect and organize website data and operate pictu...
when I was expanding a new interface for the company s existing project, I found such an embarrassing thing: the database cannot be modified because it is an online project (decided by the boss); and the constraints between databases are in the fo...
I want to write a system comment, and there will be more responses to one comment, so it s an one-to-many self-quote. I write it as follows: Traceback (most recent call last): File " home lushg awesome sites-flask venv lib python3.5 site-packag...
I am a python3 beginner now python3.6.5 has been installed on this machine with mac and several programs such as web page collection running under the console have been written the goal is to write a background management system through web, which ...
according to my requirements, I need to query the classified data according to the classified id, but then I want to paginate my classified data, so I define the route: @home.route(" list <int:id> <int:page> ") then my access rou...
as shown in the figure, I pierced two values for the key value of entitylist when transmitting data, one is Haidilao and the other is Huashang. When I use request.form.get ( entityList ) to receive the value corresponding to key, only one is displaye...
problem description I am currently learning this book through Flask Web. Now I have learned Chapter 8. When I implement the re-authentication using hook Filter users to another interface when the user does not confirm their identity, I find that as lo...
problem description Why is it that after manually loading ctx into the stack, current_app still does not point to app the environmental background of the problems and what methods you have tried related codes Please paste the code text below...
problem description werkzeug.routing.BuildError: Could not build url for endpoint main.edit_profile_admin with values [ id ]. Did you mean main.edit_profile instead? the environmental background of the problems and what methods you have t...
I have registered multiple routes using the blueprint. For example, @ admin.route and @ home.route, now define a before_request method, which I used in @ admin.before_request, and now I want to use it in @ home. What should I do? You don t have to redef...
Flask upgrade database Times error: alembic.util.exc.CommandError: Can t locate revision identified by 56dc8fad2ab2 how to solve it? Xiaobai asks for help! ...
-sharp flask route @app.route( test ) def test(): -sharp flask send_grpc() -sharp __main__ def send_grpc(): channel = grpc.insecure_channel( server_host ) client = something_pb2_grpc.SomethingStub(channel=channel) -sharp flask res =...
the backend uses flask, to return to the front end through return. When I check it with postman, it displays Chinese normally, but when I look at the Chinese garbled in chrome, what is the problem ? -sharp flask from . import web @web.route( login ) ...
File upload uses flask-uploads plug-in, added a function to change the file name change_filename, now hopes to add a zoom function, custom width and height, only save the scaled image, the current code is as follows: @admin.route( post new , methods...
problem description I am trying to make the flask running in the virtual environment load the html file into the local port, I compared the sample code (this example comes from CS50) but did not find the error; I also renamed the function name accordi...
found https: github.com ozanonurte. has more tools for star, or how everyone builds it ....
recently in the book Flask Web Development, enter the command python hello.py db migrate-m "initial migration " when creating a migration script in a chapter 5 database. The command line neither reports an error nor shows anything ...
the error is as follows: Installing collected packages: kerberos, flask-kerberos Running setup.py install for kerberos. Error Complete output from command usr bin python3 -u -c "import setuptools, tokenize;__file__= tmp pip-build-0h776i4l ker...
problem description write a Flask app, home page to display a form, then enter the conditions, submit, get N eligible news headlines from a fixed site, and then use pdfkit s from_url to convert these pages into PDF. What I m thinking about now is ho...
question: nodejsCPPjsCPPCPP js method tried: libuvlibuv libuv libuv libuvCPP CPPmsgwaitformultipleobjectsPostThreadMessage MFC msgwaitformultipleobjectswhile whilejs ...
Let me ask you a question. The name of T1 does not exist in T2. It doesn t come around a bit. The name in T2 not in T1 is still not correct ....
proxy configured, local port is 9527 proxy: { socketServer : { target: ws: 192.168.30.76:8087 , changeOrigin: true, ws: true, }, }, let ws = new WebSocket( ws: localhost:9527 socketServer server-admin ) ws.onopen = function(d...
the front end of a monk sees form nested input when looking at many projects, such as the following: <form class="search_form"> <input type="search" name="search" placeholder="" class="search_inpu...
excuse me, how can I modify the variable passed in outside the function, not the one that modifies the copy? function minus_num(num) { num -= 1 } var a = 10 while (num > 0){ minus_num(num) } console.log(a) 0 ...