Skip to content

Tag: flask

List of query params with Flask request.args

I am trying to pass comma separated query parameters to a Flask endpoint. An example URI would be: localhost:3031/someresource#?status=1001,1002,1003 Looking at the return of request.args or request.args.getlist(‘status’) I see that I only get a string. I know I can split the string by comma but t…

Flask app on Docker: Max retries exceeded with URL

I’m working on a simple Flask app for which I’m using the default template: I’m just calling a dummy function that return and ‘ok’ response: When I call it directly on my machine with the following code: It works without any issue, but if I run it from the docker image I get the …

Could not import “D”: FLASK_APP

I am new to Flask. I wrote this basic code and save it in hello.py in my D:Cat_vs_Dogscripts folder. Then in command prompt, I wrote the following commands. I am getting this error. What should I do…? Answer Flask v1.1.x https://flask.palletsprojects.com/en/1.1.x/cli/#application-discovery The above doc…