开发者

Django url rewrite engine implementation

I am looking for how to implement URL rewrite in Django which is explained in http://en.wikipedia.org/wiki/Rewrite_engine .

For ex开发者_开发百科ample,I would like to convert

http://127.0.0.1:8000/employer/full_detail/20/ to http://127.0.0.1:8000/employername-20.htm

How can I implement this in Django? could suggest me a document or give an example ? Thanks

Thanks


You don't want to rewrite urls through django (really...you probably don't want to rewrite them at all) You might be looking for a redirect, or you might want to rewrite/redirect from whatever you're using to serve Django in production (nginx or Apache most likely)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜