3-Use databases in Django
Database Settings
In the previous section, you learned how to create a Django project, create a web application in a Django project, and reference the URL of a web application in the URL of a Django main program.Here's how to use databases in Django.To use a database in Django, you first need to understand the settings for the database connecti ...
Posted by Sinikka on Sun, 16 Feb 2020 21:48:32 +0100
MySQL query operation
Introduction to MySQL database Learning notes (2)
Simple query
SELECT column_name1, column_name2 FROM table_name;
#select name,phone from person;
SELECT * FROM table_name;
#select * from person; * indicates all contents in the query table
Conditional query
where clause is required for condition q ...
Posted by the-hardy-kid on Sun, 16 Feb 2020 05:48:27 +0100
Introduction to rpm package management
API: application program interface
ABI: application binary interface
The ABI file of linux system is in ELF format
The ABI file of windows system is in the form of exe and msi
System level development language: c/c++
Works: httpd, vsftpd, nginx
Application level development: java/python/php
java works: hadoop, hbase
python works: openstack
It's ...
Posted by dekeb55 on Sat, 15 Feb 2020 11:28:04 +0100
RedisCluster quick start notes
[TOC]
RedisCluster quick start notes
PS: this tutorial is based on Redis5.0+
Note for Redis cluster cluster:
It can expand linearly to 1000 nodes
Nodes use P2P instead of Proxy to interact, sacrificing data consistency
Client tolerates a certain degree of data loss
Data is stored and distributed on multiple Redis instances according to Slot
Cl ...
Posted by stickman373 on Sat, 15 Feb 2020 10:07:09 +0100
Git Dehydration Edition [10. Internal Mechanism]
a.1 underlying command
Previously, we outlined 30 common Git commands, such as checkout/branch/remote. Since Git's initial goal was a collection of tools, not a VCS system, it contained a large number of underlying commands to be invoked in scripts like Unix systems, so these commands are called under ...
Posted by Drakkie on Sat, 15 Feb 2020 07:39:34 +0100
Deployment and use of docker (12) harbor
Harbor is an enterprise level Registry server for storing and distributing Docker images.
The image storage harbor uses the official docker registry(v2 named distribution) service to complete.
On the basis of docker distribution, harbor adds some functions of security, access control and management to m ...
Posted by Peter on Fri, 14 Feb 2020 10:53:23 +0100
PHP environment building windows
To prepare the Apache and php packages:
Link: https://pan.baidu.com/s/1xclkowi-a3r8oeyften3a
Extraction code: whjj
Install Apache
1. Modify the httpd.conf configuration in the Apache24\conf \ directory, and open the httpd.conf file in Notepad
2. Find the item "Define SRVROOT" and change the ...
Posted by getmukesh on Fri, 14 Feb 2020 08:54:55 +0100
Use Sonar for Code Quality Management and Mail Alarm
1. Overview of Sonar
Sonar is an open platform for code quality management.Through the plug-in mechanism, Sonar can integrate different testing tools, code analysis tools, and continuous integration tools.
Unlike continuous integration tools such as Hudson/Jenkins, Sonar does not simply display the results of different code inspection tools (s ...
Posted by NixNod on Thu, 13 Feb 2020 23:00:45 +0100
Spring MVC self study log 07 (Mybatic integration)
Integration steps
Import related jar package
<!--junit-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<!--mybatis-->
<dependency>
<groupId>org.mybatis& ...
Posted by jamal dakak on Thu, 13 Feb 2020 16:50:30 +0100
Flash + MySQL + eckarts: realize data visualization
Flask
Flask is a lightweight WSGI Web application framework. It is designed to make it easy to get started and has the ability to scale to complex applications. It was originally a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python Web application frameworks.
from fl ...
Posted by trinitywave on Thu, 13 Feb 2020 14:37:21 +0100