Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Component development method and device based on Django framework

A component development and framework technology, applied in software maintenance/management, code refactoring, and source code creation/generation, etc., can solve problems such as unfavorable web framework life cycle unified management, reduced development efficiency, poor scalability, etc. The effect of unified rights management, improving development efficiency and reducing development difficulty

Inactive Publication Date: 2019-07-02
BEIJING GOLDWIND SCI & CREATION WINDPOWER EQUIP CO LTD
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, such an operation requires the user to set a single-entry function and set the function control module and management module separately, which will lead to over-concentration of functions. Although the duplication of code is reduced to a certain extent, the operation is not flexible enough and the subsequent scalability is poor.
[0003] In addition, in the current enterprise-level web development, although in order to achieve the purpose of rapid development, the development efficiency has been improved by using CBV (classbased view, class-based view), but in the implementation of the web framework life cycle Commonly involved functions such as viewing, creating, updating, and deleting objects need to be written separately to implement functions such as login and permission verification, so as to ensure that users perform corresponding operations when they log in and have corresponding permissions. This not only increases It increases the amount of extra code, reduces the development efficiency, and is not conducive to the unified management of the life cycle of the web framework

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Component development method and device based on Django framework
  • Component development method and device based on Django framework
  • Component development method and device based on Django framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of this application.

[0030] In order to facilitate the understanding of the present invention, some terms used in the present invention and knowledge related to these terms are first explained and described here. The Django framework is an open source enterprise-level Web application framework developed in the python language, so Django is also known as the MTV framework. figure 1 It is a schematic diagram showing the MTV model of the prior art. In the MTV framework, M stan...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a component development method and device based on a Django framework. The component development method comprises the following steps: encapsulating at least one multi-inheritance class for realizing a predetermined function in at least one view in a service logic layer of a Django framework to generate at least one reconstructed view; and realizing a function correspondingto the at least one reconstructed view based on the at least one reconstructed view, wherein the at least one multi-inheritance class comprises a multi-inheritance class for realizing a login function and a multi-inheritance class for realizing an authority verification function, and the realization step comprises the step of calling the generated at least one reconstruction view to realize the login function, the authority verification function and the function corresponding to the at least one view.

Description

Technical field [0001] The present invention relates to the field of software development, and more specifically, to a component development method and device based on the Django framework. Background technique [0002] The Django framework is a commonly used web development framework, which is widely used because it can develop database-driven websites easily and quickly. However, many Django projects currently use single-module view functions to handle business. However, the problem of writing single-module view functions to handle business is that even some simple configuration options or functions require users to write separately when needed. Corresponding function implementation, which makes them subject to many restrictions in real applications, and increases the amount of code, and the subsequent scalability is poor. For this reason, the prior art proposes to set a single-entry function. When data needs to be processed, the single-entry function is called, and the data p...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/34G06F8/72
CPCG06F8/34G06F8/72
Inventor 孟广辉
Owner BEIJING GOLDWIND SCI & CREATION WINDPOWER EQUIP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products