Django — the way to connect multiple databases

  *First of all, I’m using versions of Python 3.5 and Django 2.0.4, and the company is using Django, not restframework. I. application scenarios   First, a Django project usually has multiple apps, and now many companies share a common database of these apps. There are no so-called multiple databases in this scenario. In my personal experience, the company has made some small systems in the past two months.It’s all for sorting data inside the company), because each is in a hurry, so it’s done one online, and the database and the project are on different servers. Until o...

Webpack command Module build failed (from. / node_modules / babel-loader / lib / index. js) error problem solution

An error was reported when the project was running, and the error was Module build failed (from. / node_modules / babel-loader / lib / index. js)   Solution: Console input NPM install @babel/core @babel/preset-env command      Perfect solution

Use of Cobian backup 11

Host and backup machine create backup user (BF) On the backup machine Set up backup users. Backup directory right click Security, add the newly created backup BF user, and grant all rights. Set folder sharing and set up shared users as BF users just created. And in advanced sharing settings, remove everyone users, add BF users to grant all rights. Host install Cobian backup 11 software New task Schedule, choose how long to execute, execution time.  For the first time, it will be full backup, then backup the new files. If the log shows an incremental backup but a full backup is made, chec...

VNC boot failed

SSHLogin to server and restart VNC service with command line. $service vncserver start The following are the following: Starting VNC server: no displays configured                [FAILED] Solve: $vim /etc/sysconfig/vncservers View configuration files and modify the following two lines of configuration file parameters as follows: VNCSERVERS=”2:shim”VNCSERVERARGS[2]=”-geometry 1360×768  -nolisten tcp -localhost”$source /etc/sysconfig/vncservers Restart service, client connection server is normal.

The use of Git —8. windows graphical interface management (self study)

” TortoiseGit “as an example. 1. download software. Git:https://git-for-windows.github.io/ TortoiseGit & TortoiseGit-LanguagePack:https://tortoisegit.org/download/ 2. installation configuration steps The specific installation steps can be referred to as: http://unun.in/fenxiang/45.html 3.” more git learning materials. http://git.oschina.net/progit/ http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 http://www.open-open.com/lib/view/open1328070620202.html http://www.open-open.com/lib/view/open1328069889514.html

Realize linear fitting with my algorithm -tensorflow.

TensorFlow™ It is an open source software library for high performance numerical computation. With its flexible architecture, users can easily deploy computing to multiple platforms (CPU, GPU, TPU) and devices (desktop devices, server clusters, mobile devices, edge devices, etc.). TensorFlOw @ was originally developed by researchers and engineers on the Google Brain team, which is part of Google’s AI division, to provide strong support for machine learning and in-depth learning, and its flexible numerical computing core is widely used in many other scientific disciplines.field Next, w...

< one >Python data type

<One > variable, character encoding. 1:Declare variables:   #_*_coding:utf-8_*_ #__author__:"shikai" name="shikai"#Variable name: value of name variable: Shikai Define variable rules: ✪Variable names can only be any combination of letters, digits, or underscores. ✪The first character of a variable name cannot be a number. ✪Keyword cannot be declared as variable name. [‘and’, ‘as’, ‘assert’, ‘break’, ‘class’, ‘continue’, ‘def’, ‘del’, ‘elif’, ‘else’, ‘ex...

Red hat’s new mission: to make the four forms of IT invisible (top net; 2018-08-24)

In the past few years, Red Hat has been emphasizing the interaction of four IT forms: physical servers, virtual machines, private clouds, and public clouds. Whether viewed from the competitive situation or from the changing customer needs, a single environment is unlikely to be easily extended to meet the needs of modern enterprises. In hybrid clouds, workloads and resources can span these deployment options, so hybrid clouds are now a key component of digital transformation, and so is consistency. CIOs need to know that their applications and services will respond consistently anywhere, any...