django 设置不带后缀的访问路径

 

在urls.py

设置空路径,并指向对应的html文件

url(r'^$', views.index),

posted @ 2017-06-27 17:28  金牛小子  阅读(254)  评论(0编辑  收藏  举报