Django from getting started to forgetting to learn notes

Source: Internet
Author: User

0x00 Django Concept

Django-python a framework that integrates the code of the Cgi,wsgi pattern into a web framework.

0x01 MTV Mode

Unlike the general MVC model, because of the integration of Django itself, C (Controller) has been integrated and does not need to be set up, and for us it is important for MTV (Model,template,view) three modules. Understanding the association between three modules is the key to learning Django.

Django-admin startproject CMS (project name)->python manage.py Startapp appname (name), add app name in setting, and write models. Py->python manage.py makemigrations Appname->python manage.py Migrate (update model), write admin.py to register the previous module Admin.site.register (Modelsname), completed the M

V

Request in---from the server to get data--processing data--to render the Web page

The URL setting is the equivalent of the client's entry to the server requesting the request, and it is used to indicate the program logical views to be invoked to process the program logic and then render to the template (typically a get method with a slightly different post method) template generally html+ The form of CSS is mainly presented to the user in the form of expression

0x02 Model to Be continued ...

0x0s Reference Documents

https://www.shiyanlou.com/courses/487

http://d-roger.com/2016/06/27/hvae/

http://hackerxu.com/Twd/

Http://www.jianshu.com/p/3bf9fb2a7e31

Django from getting started to forgetting to learn notes

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.