Skip to content
Advertisement

Tag: flask

is there a way to parse python-flask oauth2

I have code something like below – Here when app.run(host=’127.0.0.1′, port=’80’) runs gives me URL – http://127.0.0.1/getcode. I need to mannually open enter username and password and again then one more window comes to enter YOB, which then give me something like – Here My question is there a way to avoid doing this manually opening the browser and enter

How to open and process .rtf files in Flask

I am trying to send a request including a rtf file and process it in Flask. In my python script, I used the striprtf lib to read this file and then process it. Now I want to wrap this script into flask. I got error said: TypeError: expected string or bytes-like object. How can I read this rtf file in

flask python website save user input and add it to the list

this website currently starts out with two input fields at the tope left corner. The first input is the persons name and the second input is the question they have.Currently it just prints successful and unsuccessful. when you press submit button I want the website to print and save the name and question. when a new question is asked it

Somehow my Fask API returns me old values

In debug: I run ng serve on my angular project, make the request and receive the updated values In production I update de files of the API and the angular project, make the request and receive old data. If I open the API link in a new tab I get the updated values, even the files in the server are

flask.cli.NoAppException: Could not import “app”

My application’s name is app.py, and it’s in a folder named ToDo-App, and within this folder there is another folder called templates, that contains the index.html file. In the terminal: Esam@DESKTOP-73QDAD3 MINGW32 /i/web/advanced-track/1-sql_and_data_modeling_for_the_web/ToDo-App $ FLASK_APP=app.py FLASK_DEBUG=true flask run Serving Flask app “app.py” (lazy loading) Environment: production WARNING: This is a development server. Do not use it in a production deployment.

How to get full filepath on Flask?

I want to get a full file path on Flask. This is part of HTML code. Then, user sends the file name to Flask. Flask will catch it. But Flask can only get the filename, not a full path. So, this application can’t open the file and return the Internal Server Error. How can I get the full path of

PyCharm is giving an unused import error for routes, and models

I am trying to build a basic Flask project. Here is the app.py file. PyCharm is telling me that route, and models are unused imports. They are located in the same root directory together. I’m not sure how to get these imported another way without having a circular import error. Answer An ideal way would be to use this structure

How to link static folder in Google app engine with a storage bucket

Created a new python Flask app-engine python project and want to use the static files from Google cloud storage. I am using this yaml.file: Where in the app engine do you link to storage https://storage.googleapis.com/<your-bucket-name>/static/ with /static in the app-engine? It is not clear from the documentation. Answer You can’t use file stored on Google Cloud Storage as static folder

pass variable from JavaScript to Python using Flask [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question It’s an error I’ve been stuck on for a while. How would I pass this to python with Flask without

Advertisement