Django2.0中得url路由path得用法

Django2.0中,url得匹配规则更新了,在django1.0中,url是用正则表达式书写得,相对来说比较繁琐一些,在django2.0中进行了升级优化,改为了path

from django.urls import path 导入path模块后,可以使用啦
请看截图

猜你喜欢

转载自www.cnblogs.com/chaojiyingxiong/p/9693081.html