In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "what are the concepts of Python Web programming", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "what are the concepts of Python Web programming"?
1. The functions that traditional Web Server should have
◆ listens on a local port and accepts HTTP requests from clients
◆ processes the HTTP request itself or calls other gateways to handle the request
◆ responds to the client based on the HTTP protocol.
Other aspects of ◆ support for HTTP/HTTPS
2. The functions that Web Gateway should have
◆ Gateway does not need to deal with the details of the HTTP protocol
◆ Gateway accepts environment variables and call parameters as its own variables
◆ Gateway returns the call result according to the call rules
3. Common functions of Web Framework
There is rarely one framework to accomplish all of these tasks, the general framework often provides basic functions or specializes in one function, and the rest is implemented by us or we combine multiple frameworks. Django is said to be capable and versatile, but the requirements are ever-changing, so it is often up to programmers to combine other frameworks that specialize in one particular task. This is the case with SSH in java.
1. Session (Cookie)
2. Authentication/Authorization: AA is a very general-purpose function, which should be abstracted into the framework to implement. Don't bite this hard wheel again and again.
3. Template: templates will greatly increase readability and maintainability. A powerful template that is easy to use is very important.
4. MVC: MVC is already a habit
5. Menu: menu navigation is also a general module, which is implemented by the framework.
6. Pagination: paging is also a very common feature, which should be implemented in advance when developing specific projects
7. I18n: the framework should provide international solutions
8. DB/ORM: in today's projects, it is almost common to access databases, so a good framework should provide a simple DB interface, and it is better to provide ORM
9. Workflow?
10. Web Service?
11. Batch Job
twelve。 Verification code?
Other
4. Common functions of Web Application
1. Login/logout/Account maintenance: based on the functions such as Session,AA provided by Web server or Web framework, you can create login and log out based on users.
2. Query / View / Create / Delete / Undelete / Import /: add, delete, modify, import, etc., based on DB/ORM,Pagination, etc.
3. Front verification/Front control (JavaScript): almost all front-end verification uses JavaScript, so you can consider using a popular JavaScript framework.
4. Back End verification: back-end verification
5. Theme / UI (CSS): everyone likes beautiful pages, and a unified theme and interface are necessary for every project.
6. Parameter: all projects have some system parameters, and a page should be provided for administrators to maintain these parameters.
7. Code: Code Mapping is the mapping of male M and female F, and a page should be provided for administrators to maintain these code
8. Upload / Download: upload and download the file, which is the common module that should write the cost item
9. Report (Excel, PDF): reports, which can be generated by code or reports can also use third-party report frameworks
10. Audit trail: anyone who does anything should have an audit. This function is different from project to project, so let's do it separately.
11. Backup/Recovery: failure recovery?
5. What is Web Middleware?
What is Web Middleware? This is the guy who acts like a Web Application; to Web Server and acts like a Web Server to Web Application. In other words, for Web Server, Web Middleware plays the role of Web Application; for Web Application, Web Middleware plays the role of Web Server.
Personally, I think many Web frameworks of Python are Middleware. For traditional Web Server, they play the role of Application based on WSGI, and for those of us who develop projects, they also play the role of Web Server/Web Framework.
At this point, I believe you have a deeper understanding of "what are the concepts of Python Web programming?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.