Django2.0后urls的配置发生了改变: 转载自:https://blog.csdn.net/SilentWu/article/details/88205831 解决方案: 把url函数换成path 不适用^,$作路由 eg: 2.0以前版本: 2.0以后版本