Top "Flask" questions

Flask is a lightweight framework for developing web applications using Python.

Get IP address of visitors using Flask for Python

I'm making a website where users can log on and download files, using the Flask micro-framework (based on Werkzeug) which …

python flask ip-address werkzeug
How to iterate through a list of dictionaries in Jinja template?

I tried: list1 = [{"username": "abhi", "pass": 2087}] return render_template("file_output.html", list1=list1) In the template: <table border=2&…

python dictionary flask iteration jinja2
Flask example with POST

Suppose the following route which accesses an xml file to replace the text of a specific tag with a given …

python rest flask lxml
How can I pass data from Flask to JavaScript in a template?

My app makes a call to an API that returns a dictionary. I want to pass information from this dict …

javascript python flask jinja2
Return HTTP status code 201 in flask

We're using Flask for one of our API's and I was just wondering if anyone knew how to return a …

python flask httpresponse
In Flask, What is request.args and how is it used?

I'm new in Flask. I can't understand how request.args is used. I read somewhere that it is used to …

python python-2.7 flask pagination
Python Flask, how to set content type

I am using Flask and I return an XML file from a get request. How do I set the content …

python flask
How to get http headers in flask?

I am newbie to python and using Python Flask and generating REST API service. I want to check authorization header …

python http flask http-headers authorization
Flask Python Buttons

Im trying to create two buttons on a page. Each one I would like to carry out a different python …

python html button flask
How do I set response headers in Flask?

This is my code: @app.route('/hello', methods=["POST"]) def hello(): resp = make_response() resp.headers['Access-Control-Allow-Origin'] = '*' …

python flask