Django configuration access sequence -> MTV development pattern

Frame mode mvc

m - "model database

v - "view view

c - "controller logic control

 

mtv (django)

m - "model database

t - "templats view

v - "view control logic

 

 

html presentation logic

url to access the page in a few steps:

1. You must have an HTML template
Here Insert Picture Description

 

2. build a view to achieve html logical place, views.py file

 

 

3. Finally url which view the corresponding configuration, urls.py file

Guess you like

Origin www.cnblogs.com/wangyajuanjuan/p/12113121.html