websites urls without file extension?

后端 未结 10 1810
误落风尘
误落风尘 2020-12-16 14:50

When I look at Amazon.com and I see their URL for pages, it does not have .htm, .html or .php at the end of the URL.

It is lik

10条回答
  •  余生分开走
    2020-12-16 15:30

    In Django (a web application framework for python), you design the URLs yourself, independent of any file name, or even any path on the server for that matter.

    You just say something like "I want /news// urls to be handled by this function"

提交回复
热议问题