Return value of Flask basis and form form form submission

Catalog 1. Comparison of three mainstream Web frameworks Django Tornado Flask in Python at this stage 2. Installation of flask 3. The first simple application of flask 4. Render? Template in flask 5. redirect redirection in flask 6. Submit the formdata form in flask 7. File tran ...

Posted on Tue, 19 Nov 2019 01:58:05 -0500 by rakhi

The introduction of Django

Introduction to Django CMDB system Preface Author: he Quan, github address: https://github.com/ XXX QQ communication group: ×××× Through this tutorial, you can start from scratch and write a simple CMDB system independently. At present, there are two main development methods: mvc and mvvc. This tutorial is an introduc ...

Posted on Fri, 15 Nov 2019 09:06:06 -0500 by hayw0027

Configure database connection

(II) configure database connection New database link (mysql) Open a mysql and create a database mysql -uroot -p123 mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +-------------------- ...

Posted on Tue, 12 Nov 2019 14:41:34 -0500 by Walker33

Nginx installation configuration and simple deployment

install Centos It is recommended to simply install yum install Nginx Other installation methods: wget http://nginx.org/download/ngi... tar -zxvf nginx-1.9.8.tar.gz cd nginx-1.9.8 ./configure Make & & make install or make install after make After this installation, the installation path is the default path. See the system for ...

Posted on Mon, 11 Nov 2019 16:33:03 -0500 by tili

How django uploads batch parsed data from excel in the background

To batch parse data from excel imported from the django background, for example, let's import svn history data back in batchdata formatMacDown logo Suppose there are four columns in the excel table, each of which is version number, attribute, attribute value, warehouse address 2. First, create a new app, then create a new model in the app@pytho ...

Posted on Mon, 11 Nov 2019 03:30:03 -0500 by creocast

The web framework of python -- Django project

Conference room reservation for Django project: Interface effect display: 1. Create super administrator to realize the function of predetermined interface     2. Scheduled interface:   (1) design data table structure based on pymysql, and clarify the interaction logic between front and back end and user. (user table, meeting room tab ...

Posted on Sat, 09 Nov 2019 15:21:18 -0500 by TwistedLogix

Django xadmin rich text ueditor edit configuration and solve the problem of not displaying pictures

Download DjangoUeditor first: https://github.com/twz915/DjangoUeditor3 Install DjangoUeditor This is to go to the official website to download and install, but it is not compatible with python3 pip install DjangoUeditor Here you choose to download the source code for installation, consider compatibility, enter the c ...

Posted on Thu, 07 Nov 2019 16:10:04 -0500 by deRusett

A detailed explanation of how the generated token of jwt authentication is passed back to the backend and parsed

token backend parsing after jwt authentication generation First, the front end sends the token The location of token headers {'authorization': value of token ', content type': application / JSON} Write in ajax //Show only part of the headers code headers:{"authorization":this.$cookies.get("token")} //token value is usually put in cookies //The ...

Posted on Wed, 06 Nov 2019 09:23:26 -0500 by Keith Scott

Python -- how to implement ORM with metaclasses

Metaclass implementation ORM ORM is the core idea of Django, "Object Relational Mapping", that is, Object Relational Mapping, which is used to simplify SQL operations, encapsulate database operations into classes, map table names into classes, map fields into properties, and map rows (data) into instances. ...

Posted on Tue, 05 Nov 2019 12:48:17 -0500 by tstout2

Django Rest framework Serializer serializer-04 model class serializer

Model class serializer If we want to use the Serializer corresponding to Django's model class, DRF provides us with the ModelSerializer model class Serializer to help us quickly create a Serializer class. ModelSerializer is the same as regular Serializer, but provides: Automatically generate a series of fields based on model cl ...

Posted on Mon, 04 Nov 2019 10:28:56 -0500 by derrick24