flask foundation for python learning

What is Flask?Flask is a Web framework that provides tools, libraries, and technologies that allow you to build a Web application. This Web applicationThese can be Web pages, blogs, wiki, Web-based calendar applications, or business websites.Flask dependent modules:web Services Gateway Interface (Python Web Server Gateway Interface, abbreviate ...

Posted on Tue, 25 Feb 2020 17:13:01 -0800 by briguy9872

A simple purchase, sale and stock system developed by Django with admin

4. Sale module 4.1.models.py setting 4.1.1. order The order module is the initial module of this project. Only after the order is received can all the following actions be performed. The module is divided into header and detail. CAT_CHOICES = [ ('1', 'CAT1'), ('2', 'CAT2'), ('3', 'CAT3 ...

Posted on Sat, 22 Feb 2020 08:58:27 -0800 by IanMartins

django advanced view layer

A basic environment 1 Environmental Treatment mkdir djanad cd djanad/ pyenv virtualenv 3.6.5 djanad pyenv local djanad give the result as follows 2 Create django and basic configuration pip install django==2.1 django-admin startproject demo . django-admin startapp app give the result as follows The database configuration is a ...

Posted on Wed, 19 Feb 2020 10:24:05 -0800 by redzzzon

Python development tank battle

Python can not only develop websites and reptile data analysis, but also write games. Next, we will share the code of tank war: PS: in the process of learning python, many people often give up because they can't solve problems or don't have good tutorials. Therefore, I sorted out the basic Python script, web development, crawler, django, data m ...

Posted on Tue, 18 Feb 2020 01:46:50 -0800 by vh3r

python's method of image processing with TensorFlow

This article mainly introduces the method of image processing using TensorFlow. The editor thinks it's very good. Now I'll share it with you and give you a reference. Let's follow Xiaobian to have a look Article directory 1, Zooming in and out of pictures 2, Brightness adjustment of pictures 3, Contr ...

Posted on Fri, 14 Feb 2020 06:51:22 -0800 by patrick99e99

Django account management part - password modification and reset

Important: change password, reset password by email Last article: User login and registration Video: Just take a look at this Change Password In general, the password modification process is that the user clicks the password modification and jumps to the password modification page, where the old pa ...

Posted on Tue, 11 Feb 2020 03:57:41 -0800 by tbone05420

[django] - CRUD operation of models

  Increase Create 1. preservation To create an object, use the keyword parameter of the model class to instantiate it, then call save() to save it to the database. #Method 1: the Test module usually creates and saves objects in one step models.Entity.objects.create(c1='xx', c2='oo') # Add a p ...

Posted on Mon, 10 Feb 2020 23:41:13 -0800 by jamessw

109. Processing of large csv files

The HttpResponse object will return the responded data as a whole, at which point if the data is very large, the browser will exceed the default timeout and return the timeout if it does not get a response from the server for a long time.Streaming HttpResponse, on the other hand, returns the responded ...

Posted on Mon, 10 Feb 2020 17:29:30 -0800 by mebar3

Some programming skills for beginners of Python

This article mainly introduces some programming skills for beginners of Python, which are based on some basic programming habits. Please refer to Exchange variables x = 6 y = 5 x, y = y, x print x >>> 5 print y >>> 6 if statement in line print "Hello" if True else "World" >&g ...

Posted on Mon, 10 Feb 2020 07:46:41 -0800 by inversesoft123

Python decorator details

Python decorator details Decorators are an important part of Python. Simply put: they are functions that modify the functionality of other functions. They help keep our code shorter. Most beginners don't know where to use them, so I'm going to share the areas where decorators can make your code simp ...

Posted on Mon, 10 Feb 2020 05:37:26 -0800 by monkuar