Learn Ajax requests of Django framework together; Pager; form component verification field; form component source code analysis
Introduction:
In previous chapters, we used form to submit requests. In this chapter, we will learn a new way to submit requests: Ajax. It is a new way to interact with the back end. Let's learn about it!
Ajax
1, What is Ajax
AJAX (Asynchronous Javascript And XML) is translated into Chinese as "Asynchronous Javascript And XML ...
Posted by ajanoult on Tue, 08 Mar 2022 22:15:00 +0100
Django framework + file upload + API call
Dry goods content
1. Introduction to Django MTV mode 2. File upload function under Django 3. Implement VirusTotal API call under Django
0x0 introduction to Django framework
At present, many Web frameworks are developed based on MVC development mode. Django is also very similar, but it is based on MTV development mode. Here is a brie ...
Posted by dannyluked on Tue, 08 Mar 2022 15:13:56 +0100
Mobile phone number validation latest regular expression
Generally, the form page needs to fill in the mobile phone number. To verify whether the mobile phone number entered by the user is correct, we need to use the regular expression to match the mobile phone number segment. If it is in the operator number segment, the number is correct. Therefore, it is necessary to know the latest segment number ...
Posted by dila125 on Mon, 07 Mar 2022 02:04:50 +0100
Use Baidu ueeditor rich text editor in django project
Get ueeditor
Download UEditor source code from the official website. There is no UEditor in the downloaded source code all. JS file. You need to use grunt to package the source package into a deployment Version (including ueditor.all.js file)
Install node jsGlobal install grunt (NPM install - G grunt CLI)The command line switches the director ...
Posted by jami3 on Fri, 04 Mar 2022 22:50:34 +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
django13:Session and Cookie operation
Session and Cookie
cookie
The information saved on the client browser by the server can teach cookie s
The expression form is generally k:v key value pairs (can be multiple)
Optimization:
Random string 1: user 1 related information
Random string 2: User 2 related information
session
The data is saved on the server
The expression ...
Posted by timecatcher on Thu, 03 Mar 2022 22:32:15 +0100
[Django backend] wechat applet post requests to return 403 or 500 solutions
Django is simply used to provide the back-end interface for wechat applet. I am responsible for the back-end interface and my classmates are responsible for the front-end. We tested that there is no problem with the get request, but when sending the post request, the return values received by the front-end are always 500 and 403. (PS: if you wa ...
Posted by rel on Sun, 27 Feb 2022 10:08:32 +0100
cookies and session s in django
Cookies and session s
Keep the session state and record login, browsing and other information From opening the browser to visit a website to closing the browser to end the visit, it is called a session http protocol is stateless, which makes it difficult to maintain the session
cookie and session are two storage technologies born to maintain ...
Posted by xtian on Sun, 27 Feb 2022 00:56:09 +0100
Details of deployment of Django, uwsgi, MySQL and nginx for Ubuntu 20.04 server
**
I would like to dedicate this article to those friends like me who are confused about linux system servers! Don't be afraid, be bold and patient. If you can't, reset the server and start from scratch
** *Huawei has tried to use the cloud image server yum for 8 months. As a result, Huawei has not been able to use the cloud image for the mos ...
Posted by matthewc on Sat, 26 Feb 2022 15:05:59 +0100
The 8th meeting of django framework
The 8th meeting of django framework
Introduction to AJAX
AJAX (Asynchronous Javascript And XML) is translated into Chinese as "Asynchronous Javascript And XML". That is, use Javascript language to interact asynchronously with the server, and the transmitted data is XML (of course, the transmitted data is not just XML).
AJAX ...
Posted by DirtySnipe on Sat, 26 Feb 2022 05:46:45 +0100