R&D
Go Development Configuration
· β˜• 4 min read
1. Common Environment Variables 1.1 GOROOT $GOROOT is the local directory where the Go package is installed. 1 2 3 4 cd /c/Go ls AUTHORS CONTRIBUTORS PATENTS VERSION bin favicon.ico misc robots.txt test CONTRIBUTING.md LICENSE README.md api doc lib pkg src 1.2 GOPATH $GOPATH is the Go workspace directory, used to hold code, third-party libraries, compiled intermediate files, and so on.

Getting Started with Pytest
· β˜• 2 min read
The Pytest framework is simple to use, rich in plugins, and powerful, and it is widely used for Python automated testing. This article introduces some basic concepts and usage of Pytest. 1. How It Runs Step one, Pytest reads its configuration from the command line or a file. Step two,

How to Build an Automated Deployment Pipeline for Django with Jenkins, Docker, and GitLab
· β˜• 8 min read
One of the illusions that programmers at big companies easily fall into is mistaking platform capabilities for their own abilities. In a large team, we should not focus only on our own little patch of ground; we need to understand every part of the platform. On one hand, this helps us make better use of the platform’s features; on the other, it helps our own technical growth.

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.