Django第三节课
摘要:url路由下 使用path函数可以指定路由名字和对应的视图函数处理逻辑 正则path,对路由进行更加精准的匹配 re_path # re_path(命名分组模式,视图函数名) 命名分组模式: (?P<变量 名>正则模式) # 限制只能输入最多两位数年龄 #/the_ 3/set_age/1 可以匹配
阅读全文
posted @ 2022-01-18 14:01
posted @ 2022-01-18 14:01
posted @ 2022-01-11 02:51
posted @ 2022-01-02 22:13
posted @ 2022-01-02 15:53