This repo is for a lesson plan involving a database and a flask website deployment that can be deployed on Pythonanywhere.com. Its main purpose is to show others how to link your front-end website to a back-end database using Flask as an intermediary.
- Python
- SQLite PortableApp
- Run the command pip install -r requirements.txt
Note
You don't need to know any HTML, JavaScript or CSS for these lessons, all related documents for each lesson will be provided for you. Furthermore, if there are any important variable names, they will be listed. (Most variable names are case sensitive because they link to the front-end)
Flask
Imported Modules.
Flask app.route.
Retrieving text from an html form.
Flask sessions (Permanent & Temporary).
Flask POST & GET methods.
Flask POST & GET methods (Continued).
Database Connection configuration.
Database interaction within Flask app.
Dynamic loading with Jinja.
Checking for database conflicts
Database DELETE statement.
User post editing with UPDATE statement.
Obfuscation with dotenv module.
Password security strength check
Salting and Hashing passwords with bcrypt module.
Modal generation.