1、创建名为babies的django项目,并在babies项目中创建三个app:commodity,index,shopper,每个app下都有一个urls.py。
2、在babies里配置主路由urls.py
3、在index里编写视图views.py
4、编写页面index.html
5、在index里编写路由urls.py
6、打开终端并查看路由
7、在commodity里编写视图views.py
8、编写页面commodity.html
9、在commodity里编写路由urls.py
10、打开终端并查看路由
11、分别编写shopper.html、login.html、shopcart.html三个页面
12、在shopper里编写视图views.py
13、在shopper里编写路由urls.py
14、最后再次打开终端并查看路由