Flask update server in firefox doesnt work
I am using Flask in VS Code and i have some codes in use for my website which i am trying to create but i have one problem: when I make a print statement or also a route, at the first time it works perfect, but if i want to change it (change the print statement or the route) it doesnt update it on the website server but if i call it with the old name which doesnt exist anymore it works. for example: “@xy.route(‘/SignUp’)” change to “@xy.route(‘/signup’)”. if i call it with the new /signup it doesnt work but if i call it with the old /SignUp which doesnt exist anymore in my coding it works.
function connected via blueprints is not executed
flask
None is not of type ‘integer’ [closed]
Closed 3 days ago.
Flask and Python interaction
I have created a small Flask application and when I go to run it, no matter what page I select, the output to the browser never changes. What have I been doing wrong?
Flask and Python interaction
I have created a small Flask application and when I go to run it, no matter what page I select, the output to the browser never changes. What have I been doing wrong?
How to get data from post request?
I built a pyton flask app like below:
How to get data from post request?
I built a pyton flask app like below:
Yield not change local variable in streaming
full_answer = “” total_tokens = 0 conversation_id = None def generate_stream(): nonlocal total_tokens, full_answer global conversation_id current_response = “” for chunk in answer_stream: if ( hasattr(chunk, “usage_metadata”) and chunk.usage_metadata is not None ): total_tokens = chunk.usage_metadata.get(“total_tokens”, 0) if hasattr(chunk, “content”) and chunk.content: current_response += chunk.content yield chunk.content current_response = current_response.strip() full_answer = current_response conversation_id = […]
Setting up Flask HTTPS server
I have a task to add certificates to my Flask server. The server is responsive with HTTP requests.
I’m getting an error “Working outside the context of the application application” [duplicate]
This question already has answers here: Flask error: RuntimeError: Working outside of application context [duplicate] (1 answer) Flask-SQLAlchemy db.create_all() raises RuntimeError working outside of application context (4 answers) Closed 9 days ago. `from loja import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(40), unique=False, nullable=False) username = db.Column(db.String(80), unique=True, nullable=False) email = db.Column(db.String(120), […]