我想使用/special.html等网址制作一些特殊页面。 实际上它应该只是文章app中某个页面的别名(例如/ articles / 2012/03/22 /)
我是否需要在urls.conf中编写一些魔法(这是什么魔法?)或者只能通过Web服务器规则来实现?
答案 0 :(得分:1)
我建议你在你的应用中做到这一点。您可以在路线中传递视图参数。
类似的东西:
url('^/special.html$', articleView,
{"year": "2012", "month": "03", "id":"1234" }, "article")