Implemented Doctor registration form using Flask micro-framework and extension Flask-WTForms which also validates input using validators provided by wtforms.I also implemented my own captcha using Python Imaging Library(PIL). Flask-sqlalchemy extension has been used as ORM to connect with mySql database and Database migration is implemented using extension sqlalchemy-migrate.
virtualenv
Python
Python Imaging Library(PIL)
create virtual environment in the folder in which you want to clone the project.
$ virtualenv flask
Then activate the virtual environment using following command:
$ source flask/bin/activate
Then clone this project using following command:
$ git clone https://github.com/tushar7795/Captcha.git
Now install Flask and necessary extensions using following command:
(flask) $ pip install -r requirements.txt
First add excution permission to run.py.
$ chmod a+x run.py
Now you can run server by running only run.py.
$ ./run.py
Now open http://localhost:5000/ in your browser to open web application.