Top "Flask" questions

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

Solve Cross Origin Resource Sharing with Flask

For the following ajax post request for Flask (how can I use data posted from ajax in flask?): $.ajax({ url: "…

javascript python ajax flask cors
How do I `jsonify` a list in Flask?

Currently Flask would raise an error when jsonifying a list. I know there could be security reasons https://github.com/…

json flask
How do I get the different parts of a Flask request's url?

I want to detect if the request came from the localhost:5000 or foo.herokuapp.com host and what path was …

python url flask
How to obtain values of request variables using Python and Flask

I'm wondering how to go about obtaining the value of a POST/GET request variable using Python with Flask. With …

python variables request flask
How to enable CORS in flask

I am trying to make a cross origin request using jquery but it keeps being reject with the message XMLHttpRequest …

jquery python heroku flask cors
How to delete a record by id in Flask-SQLAlchemy

I have users table in my MySql database. This table has id, name and age fields. How can I delete …

python flask sqlalchemy flask-sqlalchemy
Application not picking up .css file (flask/python)

I am rendering a template, that I am attempting to style with an external style sheet. File structure is as …

python html css templates flask
How to schedule a function to run every hour on Flask?

I have a Flask web hosting with no access to cron command. How can I execute some Python function every …

python asynchronous flask cron scheduled-tasks
Flask raises TemplateNotFound error even though template file exists

I am trying to render the file home.html. The file exists in my project, but I keep getting jinja2.…

python file templates flask
How to return images in flask response?

As an example, this URL: http://example.com/get_image?type=1 should return a response with a image/gif MIME …

python flask