Django realizes tag linkage and xadmin realizes tag linkage

    As shown in the figure, click a city to display the corresponding school name. At first, I thought it was implemented when I built the data table, but it was implemented through ajax. Idea: when the get request shows the original state (that is, the drop-down box presents the whole content). After clicking a city, submit it through ajax po ...

Posted by papacostas on Tue, 17 Dec 2019 06:48:30 -0800

Python - get user details based on photo information (wechat sends original picture or divulges location information)

Preface The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. By Mona Lippo PS: if you need Python learning materials, you can click the link below to get th ...

Posted by hubardz on Tue, 17 Dec 2019 00:06:51 -0800

Crawler: requests module

1. requests module 1.1 introduction to requests Requests is a powerful, simple and easy-to-use HTTP request library. Compared with the previously used urllib module, the api of requests module is more convenient. (the essence is to encapsulate urlib3) You can use the pip install requests command to install, but it is easy to have network proble ...

Posted by neogemima on Sun, 15 Dec 2019 21:06:05 -0800

Fabric CA certificate management tutorial

Fabric CA is a certificate management tool of Hyperledger Fabric, which is very convenient for development and testing. In this tutorial, we will explore the use of fabric Ca and use it to complete user registration / Register and registration / Enrollment. Hyperledger Fabric is a licensed blockchain platform. Before accessing the Fabric networ ...

Posted by Scott_J on Sun, 15 Dec 2019 20:07:18 -0800

Node.js automated test (Mocha+Istanbul)

Based on Express, Mocha + Istanbul 1. Unit Test 1.1 Install Mocha npm i -D mocha 1.2 Create test/test.js var assert = require('assert'); describe('Array', function() { describe('#indexOf()', function() { it('should return -1 when the value is not present', function() { assert.equal([1,2,3].indexOf(4), -1); }) ...

Posted by wama_tech on Sun, 15 Dec 2019 08:45:30 -0800

node + express learning one (project construction)

Make sure node and express are installed before you start 1. Initialization project express ***(***Your project name) cd *** npm install(Download dependency) Startup project: Run Command: node. / bin/www, port 3001 is my own change, in / bin/www (it is recommended to use WebStorm to run, because we need to use it to write code) 2. Coding Open ...

Posted by UmneyDurak on Sun, 15 Dec 2019 07:01:48 -0800

DjangoRestFramework Learn Two of Serialization Components, View Components

A serialized component First let's create some api interfaces according to the restful specification. Write as follows: Courses --- GET ---> View Data ---> Return to all data lists [{}, {},] Courses---POST--->Add Data--->Return Added Data{} Courses/1 - PUT--->Update pk=1 data--->Return updated data{} Courses/1 --- DELETE ---&g ...

Posted by phil88 on Sat, 14 Dec 2019 19:42:07 -0800

Baidu recruitment data crawling + source code

For the first time, it's a little bit rough to do big data analysis. But fortunately, you can come out with something. Anyway, after you get the data, you can do your own analysis The city with relatively high salary, according to Baidu recruitment information to analyze According to the market demand analysis, the age of ...

Posted by dmacman1962 on Sat, 14 Dec 2019 09:56:25 -0800

002 consumer tips

Tips for using consumer View all registered services consul catalog services Configure consumer.json { "server": true, "datacenter": "testgame", "client_addr": "0.0.0.0", "advertise_addr":"192.168.83.70", "bootstrap_expect": 1, "enable_syslog": true, "enable_script_checks": true, "data_dir": "/usr/local/consul/data", "node_name": "co ...

Posted by Dagwing on Sat, 14 Dec 2019 03:54:19 -0800

Python crawler series - Preliminary Exploration: crawling travel review

Python crawler is currently based on the requests package. The following is the documentation of the package. It is more convenient to check some information. http://docs.python-requests.org/en/master/ Crawling the product reviews of a tourism website, through analysis, it needs POST instructions to get json files. In short: GET is to add the ...

Posted by newbiez on Fri, 13 Dec 2019 13:31:54 -0800