Nov 11: WTForms, SQL Injection
Learning Objectives
After today's class, you should be able to:
- Demonstrate how to perform and prevent an SQL injection attack.
- Explain how Flask App Builder uses WTForms.
- Create a simple FormView for your webapp.
Lesson Outline¶
Announcements [10 min]
- New file/code structure in profs repository
models.pyis now themodelspackageviews.pyis now theviewspackagemenu.py(new file) builds the menu
Mini Lecture [25 min]
Example vulnerable application:
WTForms and FormViews [20 min]
- Crash Course section of WTForms docs
- Form Views section of FAB docs
- Examples from profs repository
Project Work Time [20 min]
- Refactor your code (break up models.py, views.py)
- Determine what form(s) you would like for Thursday