Skip to content

A quick example of how to send JSON data to a Python Flask route

Notifications You must be signed in to change notification settings

caseydunham/ajax-flask-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example jQuery AJAX Post to Python Flask route

This is an example of how to use the jQuery $.ajax methods to send JSON data to a Python Flask route.

$ virtualenv ajax-flask-demo-env
$ source ajax-flask-demo-env/bin/activate
(ajax-flask-demo-env) $ pip install -r requirements.txt
(ajax-flask-demo-env) $ python app.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit
* Restarting with stat
* Debugger is active!

About

A quick example of how to send JSON data to a Python Flask route

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published