Python flask learning notes
Flask Foundation
Flash overview
What is the Web Framework
Web Application Framework (Web Application Framework) or simple web framework (Web Framework) represents a collection of libraries and modules, enabling web application developers to write applications without worrying about low-level details such as protocols and thread manageme ...
Posted by Sherman on Tue, 08 Mar 2022 00:25:07 +0100
Python crawler actual combat + data analysis + data visualization (car home)
With the development of economy and the progress of science and technology, the car has become a necessary means of transportation for every family. In addition, the prerequisite for marriage is to have a car and a house, which virtually aggravates the pressure of male compatriots. At this time, we need a car urgently. The second-hand car marke ...
Posted by Base on Mon, 07 Mar 2022 21:07:56 +0100
Web chat room realized by flash socket IO
preface
As a Xiaobai, it's really difficult to read documents, and there is little knowledge about flash socketio on the Internet, so I wrote this blog for some brothers who can't do anything like me to understand the basic use of flash socketio, which can also be regarded as recording the production process of my chat room, even my small ...
Posted by damic on Sun, 06 Mar 2022 21:00:24 +0100
Project Deployment -- Gunicorn + supervisor manages Python projects
Article structure:
Gunicorn
preliminaryinstall and usagepros & cons supervisor
install and usage
Gunicorn
Gunicorn 'Green Unicorn' (pronunciation jee-unicorn | green unicorn | gun-i-corn) is a widely used Python WSGI UNIX HTTP server, transplanted from Ruby's Unicorn project, using a pre-fork working mode, which is simple to use, ...
Posted by Nommy on Thu, 03 Mar 2022 22:47:02 +0100
Merge flash log and gunicorn log
logging
The logging framework is mainly composed of four parts:
Loggers: interfaces that can be called directly by programsHandlers: decide to assign log records to the correct destinationFilters: provides a more granular judgment of whether the log is outputFormatters: make the format layout of final record printing
Logging is introduced as ...
Posted by newbieaj on Tue, 01 Mar 2022 04:23:29 +0100
Online Chat--Introduction and Realization of WebSocket
Before HTML5, browsers and servers communicated through the HTTP protocol, so what's the use of introducing a WebSocket? Imagine a web page broadcasting a score of a football match live in text. Without a WebSocket, the client, or browser, usually updates the score dynamically in two ways: AJAX and long polling.
What is the difference between ...
Posted by phwae on Mon, 28 Feb 2022 18:41:14 +0100
Introduction to Docker
Introduction to Docker
1. Introduction
Docker is an open source application container engine, which allows developers to package their applications and dependency packages into a portable image, and then publish them to any popular Linux or Windows operating system, or realize virtualization. Containers are completely sandboxed, and there ...
Posted by moneytree on Sat, 26 Feb 2022 14:57:38 +0100
30 pieces of Python code are extremely simple, allowing you to learn a practical trick in 30 seconds
Life is short, learn Python!
How to learn Python is the fastest. Of course, it is a variety of small projects in actual combat. Only when you think and write, can you remember the rules. Today I share with you 30 minimalist tasks, which beginners can try to achieve by themselves; This article is also 30 pieces of code. Python developers can al ...
Posted by Jamez on Fri, 18 Feb 2022 18:19:23 +0100
[Flask] use of Flask Sqlalchemy
The use of flask SQLAlchemy encapsulates and optimizes SQLAlchemy:
Flask Sqlalchemy is a plug-in of the flask frameworkFlask SQLAlchemy is a plug-in that simply encapsulates SQLAlchemyIt makes it easier for us to use sqlalchemy in Flask.
1. Installation:
pip install flask-sqlalchemy
2. Key points of using flask Sqlalchemy:
2.1 database co ...
Posted by upit on Thu, 17 Feb 2022 00:07:03 +0100
Superset localization under Windows
1. Install python environment
Superset is a report system developed based on python. It needs a python environment to run, and anaconda is very convenient to manage the package management of Python. Therefore, anaconda is recommended to help configure the python environment.
1.1 installation of anaconda
Install anaconda using Tsinghua im ...
Posted by judgy on Mon, 14 Feb 2022 10:15:46 +0100