[automation operation and maintenance novice village] Flask-2 certification

[Abstract] In the last chapter of the flash topic, we mainly explained the routing, exception handling and interface return of Web applications further. Although the code is more robust, it is still far from being used in the production environment. The most critical step is authentication. Authentication is a very important link in any inter ...

Posted by webren on Sun, 13 Feb 2022 16:35:03 +0100

[data visualization] flash framework + jinjia2 advanced

Hello, I am a sophomore of e-commerce who is not a computer major but is very interested in python crawler This code is for me to look back and give you reference and exchange together in the future Can reprint, but indicate the original, thank you!   Function of jinjia2: render template jinjia2 is a third-party module and needs to be inst ...

Posted by mwaw on Mon, 31 Jan 2022 19:00:53 +0100

I'm still looking for cases. I've brought you 30 Python cases

Hello, everyone. I'm a meow in the IT industry. Python is one of the most popular languages at present. It is widely used by many people in data science, machine learning, web development, scripting and automation. Its simplicity and ease of use make it so popular. In this article, we will introduce 30 short code fragments that you can unders ...

Posted by tooNight on Thu, 20 Jan 2022 22:41:18 +0100

Nginx deployment Django Python virtual environment creation fool tutorial

The relationship between uwsgi and nginx is not discussed here, but learning is recommended Generally speaking, Nginx can ensure load balance when your web page supports more requests, Simple web pages can also meet the requirements with uwsgi deployment and django runserver, so the load capacity is Nginx > uwsgi > local django runse ...

Posted by tim_ver on Mon, 17 Jan 2022 04:09:59 +0100

Teach you how to do project web framework flash -- detailed explanation of basic usage

Reading guide Today, we will prepare for the summer vacation project. We have been making a summary of Python classes recently, so let's start our project from python. Students who like java should not be discouraged. Later, we will write a java class project accordingly. Students who like can pay attention to one wave, knock one after ano ...

Posted by William on Sun, 16 Jan 2022 17:48:24 +0100

Docker installation and Flask project deployment

Installing docker for linux Install online using yum or up2date Installing docker in CentOS 7 requires a 64 bit system and a system kernel version of 3.10 or above. You can use the following command to view it uname -r #3.10.0-1160.11.1.el7.x86_64 1. Check whether docker list has been installed yum list installed | grep docker 2. Instal ...

Posted by ouch! on Sat, 15 Jan 2022 16:17:59 +0100

Python command line - click Library

I Know Click Library In a series of articles on the command line, we mentioned that the Python standard library module argparse can be used to parse command line parameters ~ but because argparse is complex to use, add_ The argument method has many parameters. Therefore, the third-party library module click came into being, which greatly impro ...

Posted by dvwhi on Mon, 10 Jan 2022 15:53:21 +0100

Flash get post request parameters

Flash get post request parameters Today, let's continue to talk about how to obtain post request parameters using flash web application. summary There are several ways for post requests. The content type entity header is used to indicate the MIME type of the resource media type . Content type is the field of http request header. As a r ...

Posted by tomm098 on Sun, 09 Jan 2022 13:30:28 +0100

python elegant output log

Explanation: I When using the logging module When writing code in python, the basic lines of the logging module are configured as follows: import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) logger.info('this is another debug message') logg ...

Posted by werushka on Sat, 08 Jan 2022 13:59:32 +0100

Flash process request

Processing requests demand How can the data be correctly fetched when the data requested by the client needs to be read in view writing? The data carried by the request may appear in different locations in the HTTP message, and different methods need to be used to obtain parameters. 1. URL path parameters (dynamic routing) For example, the ...

Posted by mudkicker on Fri, 31 Dec 2021 08:13:41 +0100