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

在urls.py

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

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

原文地址:https://www.cnblogs.com/jjj-fly/p/7086306.html