Skip to content

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 – …

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. whe…

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

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…