Ajax call using python's flask framework.
But before running it install the virtual environment. http://virtualenvwrapper.readthedocs.io/en/latest/install.html is a nice article on how to install virtual environment. Further if you want to explore more about flask follow this link http://flask.pocoo.org/docs/0.12/quickstart/
After installing the virtualenv and to run the application first create a new virtualenv and activate it . Type the following command in the terminal:
-
virtualenv Test #or you can choose any other name
-
source bin/activate
finally to run the file
- python test.py