Django framework
1.Django of MTV mode
-
Model (model): Responsible for business objects and database objects (ORM)
-
Template (template): responsible for how the page displayed to the user
-
View (View): is responsible for the business logic, and calls the Model and Template at the appropriate time
-
In addition there is a Django urls dispenser, it is the role of one page request YRL distributed processing different view, view and then call the appropriate Model and Template
2.Django common commands
-
Create a Django project
-
django-admin startproject project name
-
-
Start Django project
-
python manage.py runserver 0.0.0.0:80
-
-
Creating APP
-
Django project can be divided into a plurality of APP, used to isolate different functional modules code
-
-