Introduction of Django basic course

Time:2021-7-22

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

preface

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.

brief introduction

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.

characteristic

Completeness

Django native provides many functional components, for developers, Django almost out of the box.

security

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.

Scalability

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.

MVT mode

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.

Django learning materials

This work adoptsCC agreementReprint must indicate the author and the link of this article

Recommended Today

Pit and summary in the development of Android widget

@ catalogue summary Official reference design sketch AndroidManifest.xml Receiver Service Options res/xml/ widget_desktop_options.xml Common parameters Size updatePeriodMillis initialLayout Using App Widgets with Collections Official reference AppWidgetProvider RemoteViewsService RemoteViewsFactory DesktopActivity summary Official reference Build an App Widget design sketch Put a rendering. This is the desktop app folder I play AndroidManifest.xml Receiver Remember not to make […]