Statement: the following is my personal understanding. If you find any mistakes or questions, you can contact me for discussion
This tutorial is the first in Django basic tutorial series
Why is there a lot of learning materials about Django on the Internet? I also want to write a Django tutorial myself. First, I want to find my own shortcomings by writing a tutorial. Second, I want to make those who want to learn Django less detours through my own summary. Of course, what I wrote may be wrong. Welcome to correct it. We can discuss and make progress together.
Django is a high-level Python web framework, which can be developed quickly and designed concisely and practically. Django is responsible for dealing with the problems encountered in website development. Programmers only need to focus on application writing, and there is no need to rebuild the wheel. It’s free and open source.
Django native provides many functional components, for developers, Django almost out of the box.
Django takes security seriously and helps developers avoid many common security errors, such as SQL injection, cross site scripting, Cross Site Request Forgery and click hijacking. Its user authentication system provides a secure way to manage user accounts and passwords.
Django emphasizes code reuse. Multiple components can serve the whole framework in the form of “plug-ins”. Django also has many powerful third-party plug-ins. You can also develop your own toolkit.
Django adopts MVT programming pattern
- M is a model, which mainly encapsulates the access to the database layer, adding, deleting, modifying and querying the data in the database.
- V all spell for view, used to receive requests, business processing, return response.
- The template is used to encapsulate the result and is responsible for encapsulating the HTML to be returned.
This work adoptsCC agreementReprint must indicate the author and the link of this article