Blog
In-depth articles on AI agents, LLM engineering, servers, Python and software development.
This article introduces the operation methods of Django framework combined with SQLite database, focusing on the use of ORM tools. Django ORM allows database operations through Python code, avoiding t
This article introduces the complete process of implementing form handling using Flask and Flask-WTF, suitable for web development scenarios requiring user information collection. First, install the F
This article introduces the concept of RESTful APIs and implementing a GET interface with Flask. RESTful APIs are HTTP-based front-end and back-end interaction architectures centered on resources, man
This article introduces the role of template engines in web development and the application of Jinja2 in Flask. Template engines solve the cumbersome problem of splicing backend data with frontend HTM
Why are virtual environments needed? They resolve dependency conflicts between different projects (e.g., compatibility issues between Django 2.2 and 4.0), prevent pollution of the system Python enviro
In Python web development, HTTP is the core for communication between the client (e.g., a browser) and the server, based on the "request-response" mechanism. The client generates an HTTP request, whic
This article introduces how to quickly build a blog system displaying article lists using Django, with a core understanding of ORM operations for data and template rendering for pages. Step 1: Envi
Flask is a lightweight Python Web framework, simple and flexible, suitable for beginners, and supports extensibility as needed. Installation requires Python 3.6+, and can be done via `pip install flas
Sorting algorithms are methods to convert unordered data into ordered sequences. They are fundamental core algorithms in computer science, enabling optimization of subsequent operations such as search
The two-dimensional complexity (time and space) of sorting algorithms is a core criterion for algorithm selection. In terms of time complexity, for small datasets (n ≤ 1000), simple quadratic-time alg