阅读背景:

如何在Django中创建类似于stackoverflow的URL?

来源:互联网 

I'm creating a video site. I want my direct urls to a video to look like example.com/watch/this-is-a-slug-1 where 1 is the video id. I don't want the slug to matter though. example.com/watch/this-is-another-slug-1 should point to the same page. On SO, /questions/id is the only part of the url that matters. How can I do that?I'm creating a video site. I want my direct url




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: