Blog
In-depth articles on AI agents, LLM engineering, servers, Python and software development.
This article introduces Flask's session management, where the core is maintaining user state through the `session` object, implemented based on Cookies. The usage involves two steps: importing `sessio
This article introduces the methods of using `Flask-WTF` for form validation and data processing in Flask. Form validation in web applications ensures data legitimacy and security, preventing invalid/
SQLAlchemy is a popular ORM tool for Python that allows database operations through Python classes/objects, avoiding direct SQL writing. It supports multiple databases (e.g., MySQL, SQLite) and is wel
This article introduces Flask, a lightweight Python web framework. First, its features are defined: concise and flexible, like a "toolbox," suitable for beginners and small-to-medium-sized projects. F
This article explains the core concept of context in Flask. Context refers to the state and data collection of the current environment, and is divided into two mechanisms: request context and applicat
This article introduces the combined development of Flask with RESTful APIs. Flask is a lightweight Python web framework suitable for quickly developing small applications and APIs. RESTful APIs are b
This article introduces methods for Flask application configuration management, with the core being the use of configuration files and environment variables to enhance flexibility and security. Con
Flask is a lightweight Python Web framework with a "micro" design philosophy, featuring a streamlined core functionality that enables complex requirements through extensible components. Key reasons fo
This article introduces the method to implement user login functionality in web applications using Flask-Login. As a lightweight extension, Flask-Login simplifies user session management, login/logout
This article introduces static resource management and CDN configuration in Flask. Basics: Flask defaults to using the `static` folder as the static resource directory. In templates, `url_for('static'