URLs
当一个用户请求一个页面时,Django将按照顺序去匹配每一个模式,并停在第一个匹配请求的URL上。
如果你的url多个正则表达式都能匹配上咋弄?小心出错,这个是按照顺序匹配的
url(r'^user/(.*)/$', ...., ......), url(r'^user/(.*)/mybook/$', ...., ......), url(r'^user/(.*)/myblog/$', ...., ......),
如果你的url是这样子,那下边那俩永远也不会起作用的。