Django realizes paging function

In this section, we will introduce the advanced modules provided by Django. Through the study of advanced modules, you will feel that Django is so easy to use, but at the same time it is very complex. Therefore, when learning such a heavy framework as Django, we must remember to be impatient and dare to explore new knowledge, In addition to fol ...

Posted by Motionographer on Sat, 19 Feb 2022 14:21:08 +0100

Django channels camera real-time video transmission

preface I have always wanted to be an unmanned car that can be monitored / operated remotely (deliver goods in the school to make money) (LE); Just because of my laziness, I didn't take action. But my bike was stolen the other day; Angrily, I wrote a real-time pedestrian recognition with opencv. Raspberry sent a camera to identify the guy ...

Posted by GaryC on Fri, 18 Feb 2022 10:12:28 +0100

04_Django template variable / tag / filter / inheritance url reverse parsing

Blog ๐Ÿ”—: https://blog.csdn.net/cPen_web video ๐Ÿ”—: https://www.bilibili.com/video/BV1vK4y1o7jH Variables and labels variable Python variables can be encapsulated in the dictionary and passed to the template in the view function Example: def xxx_view(request): dic = { "Variable 1": "Value 1", "Variable 2": "Value ...

Posted by glennn.php on Wed, 16 Feb 2022 17:09:06 +0100

html simple content

HTML # HTML is a front-end technology. It is mainly used for the development of front-end web pages. The web page developed with HTML is a static page 1, Introduction to HTML HTML, commonly known as web page, means that what we see when we open the browser to visit any website is provided by HTML page (or content related to HTML technology) ...

Posted by opido on Sat, 12 Feb 2022 01:55:46 +0100

[Django] design of Django framework based on Python web to realize daily fresh system -5 database operation

Database operation First, enter the command at the terminal: python manage.py shell The display interface is shown in the following figure: At this point, enter the shell, where we can CRUD the data in the database in an object-oriented way 1 insert operation In Django, we can operate the data in the database without writing a single li ...

Posted by theslinky on Fri, 11 Feb 2022 12:37:01 +0100

Django project notes - (implementation of user system)

Django class notes (IV) - (implementation of user system) For the process of docking acapp in the last class, since it does not involve intellectual content, we will not write a separate blog. For the content of docking acapp and assigning domain names, please refer to: Deploy nginx and docking acapp - AcWing You are also welcome to visit ot ...

Posted by Sir Mildred Pierce on Thu, 10 Feb 2022 01:15:08 +0100

django uses redis to cache the database

Redis installation 1. Download, unzip, install [root@incisor ~]# yum install -y gcc gcc-c++ make cmake [root@incisor ~]# wget http://download.redis.io/releases/redis-5.0.3.tar.gz [root@incisor ~]# tar -zxvf redis-5.0.3.tar.gz [root@incisor ~]# cd redis-5.0.3 [root@incisor redis-5.0.3]# make PREFIX=/usr/local/redis install Copy code 2. Confi ...

Posted by jozard on Wed, 09 Feb 2022 10:32:18 +0100

shoppe Project 03 - User Registration

Knowledge Review python knowledge points Routing Regular Matching path('check/username/<str:username>/', CheckUsername.as_view()) Group Naming Match In [2]: import re In [3]: a = re.match(r'[a-zA-Z]*(?P<num>\d+)[a-zA-Z]*$', 'sad131231dasda') In [4]: a.group('num') Out[4]: '131231' Model Class Query Today's explana ...

Posted by lesolemph on Fri, 04 Feb 2022 18:54:21 +0100

Django, the second day of the Spring Festival

Request and response request Request construction Start line + request header + request body HTTP request method The page information specified by the GET request returns the entity subjectHEAD is similar to get request. There is no specific content in the return response. It is generally used to debug and obtain the message header**POST s ...

Posted by lasse48 on Thu, 03 Feb 2022 00:45:51 +0100

[interface development practice] background development of college information management module based on Django

This project is based on Django. Due to the interface related development, the front-end development is not involved for the time being. MySQL is used at the back end for data storage, addition, deletion, modification and query. 1) What is Django? Django is a free and open source Web framework developed in python. It provides many mod ...

Posted by il_cenobita on Wed, 02 Feb 2022 17:59:55 +0100