Django implements a common view in a class way

Source: Internet
Author: User
This week is my first week in the job, the first day I saw the Jiaxing Big Guy Project code. I'm confused that there are class methods in the view.

Lenovo to the former Beijing 360 telephone interview, asked if I have written a class method ... It seems necessary to understand the next view of the class method, the Internet search a lot, originally this is called "General View".

Work is the size of week, this week just 5 days, so in the morning to sleep late. It seems that there is no time to detail this blog, there will be time to write later. You can look at the following reference article, I think it is also well written.

You can look at my git code, and if you have a bit of Django based, like the basic Def view, I'm sure I can read it and I've written a lot of notes.

Git URL:

Reference article:

Django class-based generic view

Introduction to class-based views

Introduction to class-based views

Django Learning Group: A generic view based on class (i)

Django Introductory learning planning and data referral

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.