Docker Operations Practices
· β˜• 2 min read
Compiled from the “Development Tips” series, a roundup of common problems and solutions in Docker usage and operations. 1. Basic Docker Machine Commands Create the my-vm-name virtual machine 1 docker-machine create --driver virtualbox my-vm-name List all docker-machine instances 1 2 3 4 docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM

API of Serializer and ViewSet in restframework
· β˜• 4 min read
1. Serializer 1.1 Data Validation When deserializing data, the validity of the data needs to be checked. At this point you can call is_valid() for validation, and if a validation error occurs, you can get the error message from the .errors attribute. For example: 1 2 3 4 serializer.is_valid() # False serializer.

ViewSet and Serializer in restframework
· β˜• 6 min read
1. View Class in Django First, recall how Django handles a request. After receiving a request, Django creates a handler of type WSGIHandler, and the handler controls the entire processing flow. So how are the request URL and the View associated with each other? Django first loads the URLconf according to the ROOT_URLCONF setting, then matches the URLpatterns in the URLconf one by one in order, stopping as soon as a match is found.

Django Full-Stack Optimization Guide
· β˜• 9 min read
As the data volume exploded, the system responded very slowly. We carried out a series of optimizations on the application, and the system’s response time improved by an order of magnitude. Overall, optimizations in file compression and faster network access gave a noticeable boost to frontend performance, while optimizations in stored procedures, caching, and logic code gave a noticeable boost to backend performance.

How Enterprises Build ToB Products
· β˜• 7 min read
The team I work with is building a ToB product that has considerable influence in its vertical. This article is a review of key events for the team, and also contains some personal reflections. 1. Be the Best in a Familiar Setting On the internet there is far too much shoddy content, and products that win broad attention and influence are few and far between.