摘要: 一、 URL参数在view中传递 1、带参数名:通过named group方式传递指定参数,语法为: (?P<name>pattern), name 为传递参数的名称,pattern代表所要匹配的模式。如下: url(r'^articles/(?P<year>[0-9]{4})/(?P<month> 阅读全文
posted @ 2018-05-25 18:31 yoyo008 阅读(5755) 评论(0) 推荐(0)