Chapter 11 - common Web applications
django commonly used Web programs
Session mechanism
When a user visits the website for the first time, the server of the website will automatically create a Session object, which is equivalent to an identity certificate of the user in the website, and the Session can store the user's data information. When users jump between web pages, the data ...
Posted by ben2468 on Tue, 30 Nov 2021 19:39:51 -0800
Knowledge summary of open source web framework django
Knowledge summary of open source web framework django (10)
Asynchronous scheme Celery
Producer consumer design model
reflection:
What's wrong with the following two lines of code?
CCP().send_template_sms(mobile, [sms_code, 5], 1)
return JsonResponse({'code': 0,'errmsg': 'ok'})
Question:
Our code is executed synchronously from to ...
Posted by fatalcure on Mon, 29 Nov 2021 17:06:26 -0800
django's addition, deletion, modification and query of database
Django's operation on the database (addition, deletion, modification and query)
1. Add data
1.save method
>>>from entry name.models import Table name to import
>>>Variable name = In which table do you want to add the name of the data table(
Added data,for example:name = 'Xiao Ming',
age = '18'
)
>>>Variable ...
Posted by lukeurtnowski on Mon, 29 Nov 2021 12:33:51 -0800
Automated testing - RobotFramework
Automated testing - RobotFramework framework
brief introduction
Is a general open source automation framework for acceptance testing, acceptance test driven development (ATDD) and robotic process automation (RPA). It has an easy-to-use table test data syntax and uses a keyword driven test method. Its test function can be extended through ...
Posted by man12_patil3 on Thu, 25 Nov 2021 23:40:51 -0800
Form and model notes
Chapter VIII
The django Form function is implemented by the Form class, which is mainly divided into two types
1.django.forms.Form
2.django.forms.ModelForm # combines the data form generated by the model
The action in the form tab of the form is used to set the route from which the form data submitted by the user should be received and processe ...
Posted by Snooble on Thu, 25 Nov 2021 15:44:22 -0800
CBV class view and class view decorator of Django framework
preface
Over the past few years, I have been struggling in the it industry. Along the way, many have summarized some high-frequency interviews in the python industry. I see most of the new blood in the industry, and I still have all kinds of difficult questions for the answers to all kinds of interview questions or collection
Therefore, I dev ...
Posted by skyxmen on Tue, 23 Nov 2021 18:21:19 -0800
DRF: serializer
A Serializer serializer
effect:
serialize,The serializer converts the model object into a dictionary,after response Later become json character string
Deserialization,Send the data sent by the client,after request Later become a dictionary,Serializers can turn dictionaries into models
Deserialization,Complete data verification function
1.1 ...
Posted by menwn on Tue, 23 Nov 2021 16:15:03 -0800
Django study notes 2
Aggregate query
Aggregate query refers to the statistical query of part or all of the data of a field in a data table. Aggregate query is required to query the average price of all books in the book data table and the total number of all books.
Whole table aggregation Import method: from django.db.models import* Aggregate function: Sum, Avg, ...
Posted by bonzie on Fri, 19 Nov 2021 20:32:23 -0800
Design and implementation of laboratory website management platform based on django
7, Laboratory introduction module The laboratory profile module is mainly used to introduce the laboratory profile and the basic information of other laboratories of the college, mainly including the laboratory profile of Binhai college, public teaching multimedia laboratory, public computer laboratory, professional laboratory of computer scien ...
Posted by dakey on Fri, 19 Nov 2021 09:52:10 -0800
The mail system of Django framework involves sending HTML, rich text and attachment mail
preface
Over the past few years, I have been struggling in the it industry. Along the way, many have summarized some high-frequency interviews in the python industry. I see most of the new blood in the industry, and I still have all kinds of difficult questions for the answers to all kinds of interview questions or collection
Therefore, I dev ...
Posted by sameveritt on Thu, 18 Nov 2021 02:34:09 -0800