Flask
Flask is a straightforward framework to build web apps more quickly than ever.
Set up Flask
Install Flask :
Lunch the app :
Basic application structure :

Basic router file :
Connect MySQL Database to Flask project :
Install depedencies :
Set up router file with right db configuration :
Our current form :
Create table related to the form :
Verify the database is correctly connected :

Sanitizing form input
Sanitizing form on client side :
Implementation of bleach in our router :
Prevent SQL injection by sanitizing server-side input data :

Last updated