Python Flask Login System with MySQL, Built Step by Step
CodeShack
0:00 / 0:00
Python Flask Login System with MySQL, Built Step by Step
140 просмотров · 2 нед. назад
CodeShack
244 подписчика
140 просмотров · 2 нед. назад
Free download (starter kit, finished code, and a checkpoint folder for chapters 6 to 15): https://codeshack.io/download/login-s...
Written tutorial: https://codeshack.io/login-system-pyt...
Already have Python, MySQL and VS Code? Skip to 2:56.
Build a complete login and registration system with Python, Flask and MySQL, one step at a time in VS Code. Every line of Python is typed on screen, the app runs every few minutes, and MySQL Workbench creates the database.
What you need (all free):
Python 3.10 or newer: https://www.python.org/downloads/
MySQL Community Server: https://dev.mysql.com/downloads/mysql/
MySQL Workbench: https://dev.mysql.com/downloads/workb...
VS Code: https://code.visualstudio.com/
Chapters
0:00 What you'll build
1:04 1. How a login works
2:30 2. Tools check
3:56 3. Project setup
6:22 4. The database
8:51 5. Settings in .env
10:09 6. First run
14:11 7. Connect to MySQL
17:14 8. Pages and forms
21:10 9. Register: check the form
24:22 10. Register: save the account
28:45 11. Log in
32:58 12. Private pages
36:16 13. The session cookie
38:05 14. Log out
39:52 15. Try to break it
43:27 16. Recap
Tested with Python 3.14, Flask 3.1.3, Werkzeug 3.1.9, Flask-WTF 1.3.0, Flask-Limiter 4.1.1, MySQL Connector/Python 26.7.0, python-dotenv 1.2.4, MySQL 26.7 and MySQL Workbench 26.7.
Stuck? Copy the files in the checkpoint folder for the chapter you just finished over your project, and keep your own .env.
The narration uses a synthetic voice.
#python #flask #mysql