[Django] Django RestFramework framework

Install RestFramework $ pip install djangorestframework # settings.py INSTALLED_APPS = ( ... 'rest_framework', ) Create Serializer class from rest_framework import serializers from .models import Book, Author, Publisher class AuthorSerializer(serializers.Serializer): id = serializers.IntegerFie ...

Posted by CodeJunkie88 on Sun, 26 Jan 2020 06:50:58 -0800

How to start paging query (JavaWeb)

Technology coverage (JavaWeb, HTML, Ajax, JQuery, Bootstrap) When contacting this part of knowledge, we often do some small demos to practice. Inevitably, we need to touch a certain amount of data. We often need to echo the data from the database to the page. However, with the increase of data volume, if we do not deal with the query or displa ...

Posted by Sonic_Rage on Sun, 26 Jan 2020 04:19:06 -0800

Crawler learning (used by requests Library)

requests Library Although the urlib module in Python's standard library already contains most of the functions we usually use, its API is not very good, and Requests is advertised as "HTTP for Humans", indicating that it is more concise and convenient to use. Installation and documentation address: pip is very convenient to install: p ...

Posted by habuchas on Sun, 26 Jan 2020 03:44:04 -0800

The realization of the level function of Cocos Creator

Level function realization Create node Set level information Implement the gate interface Add script for prefab Improve Game.js logic In the last tutorial, we explained The main function and logic realization of brick making , in this tutorial, the author will add level function based on it (i ...

Posted by firmolari on Sat, 25 Jan 2020 01:32:52 -0800

Review the basic use of mongoose

mongodb reference mongoose official website mongoose is more convenient to use Using mongodb data driver to write an error log For more information on the official data-driven mongodb of node asset assertion is not used here import mongodb from 'mongodb' const MongoClient = mongodb.MongoClient const url = 'mongodb://localhost:27017/edu' expor ...

Posted by dannyluked on Fri, 24 Jan 2020 07:08:14 -0800

Submit the form using jQuery

I want to use jQuery Submit the form.Can anyone provide code, demo or example links? #1st floor From the manual: jQuery Doc $("form:first").submit(); #2nd floor You will have to use $("#formId").submit(). Typically, you can call this function from a function. For example: &l ...

Posted by Pooptart on Wed, 22 Jan 2020 20:38:50 -0800

Python 3 realizes the automatic transfer of Baidu cloud disk resources

Python 3 Baidu cloud disk resources auto transfer Python 3 realizes the automatic transfer of Baidu cloud disk resources, solves the automatic transfer of shared links with passwords, and the automatic transfer of resources without passwords. At the same time, it realizes the transfer of post request ...

Posted by AngelGSD on Wed, 22 Jan 2020 01:31:28 -0800

Implementation of Ctrip ticket query in Python

I used to refer to other people's code and made a 12306 command-line train ticket query tool in Python. It's very interesting! So I made a similar - Ctrip ticket finder. The effect of Ctrip's official website query is as follows: The effect of Python command line interface query is as follows: Enter the departure, destination and boarding dat ...

Posted by usefulphp on Tue, 21 Jan 2020 09:11:10 -0800

Back end data interaction before learning HAP framework

Functional requirements, click the administrative region, and the pop-up box will show the administrative region of the city (Note: the following data is only for demonstration, and does not represent its authenticity) 1, Screenshot description function requirements: 2. Implementation steps: 1. Get page parameters Get the ...

Posted by shaundunne on Tue, 21 Jan 2020 08:49:53 -0800

How does RocketMQ Consumer get and maintain consumption progress?

background Cosumer's message consumption process is relatively complex, and the following modules are more important: maintenance of consumption progress, search of messages, message filtering, load balancing, message processing, acknowledgment of back delivery, etc. Limited to space, this article mai ...

Posted by zeroecko on Mon, 20 Jan 2020 20:44:12 -0800