1.创建路由文件
分别在index,commodity,shopper目录下创建urls.py文件,添加urlpatterns空列表
2.使项目的utls.py的列表指向相应的文件
3.创建视图函数-indexView
4.在路由模式列表里添加路由,指向定义的函数
5.启动项目 调试
访问http://127.0.0.1:8000/index
访问http://127.0.0.1:8000/commodity.html
访问http://127.0.0.1:8000/commodity/detail/1.html