文档是这样写的
Because the URL patterns are regular expressions, there really is no limit on what you can do with them. And there’s no need to add URL cruft such as .html – unless you want to, in which case you can do something like this:
(r'^polls/latest\.html$', 'polls.views.index'),
But, don’t do that. It’s silly
以.html结尾不是伪静态吗?为什么说是silly?
Because the URL patterns are regular expressions, there really is no limit on what you can do with them. And there’s no need to add URL cruft such as .html – unless you want to, in which case you can do something like this:
(r'^polls/latest\.html$', 'polls.views.index'),
But, don’t do that. It’s silly
以.html结尾不是伪静态吗?为什么说是silly?