![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Django
chengxiao_ling
菜鸟一只
展开
-
django新版本(2.x)踩坑记录
1、新版本urls.py不再使用正则表达式2、django2.x报错No module named 'django.core.urlresolvers'3、报错ImproperlyConfigured: Specifying a namespace in include() without providing an app_name is not supported.解决办法:在自己...转载 2019-07-01 20:44:46 · 556 阅读 · 0 评论 -
TypeError: view must be a callable or a list/tuple in the case of include().解决办法
1、django增加用户认证模块时,总是提醒模块的url.py中 url(r'^login/$', 'django.contrib.auth.views.login', name='login'),出错:TypeError: view must be a callable or a list/tuple in the case of include().2、折腾了很多种办法,找了很多原因,最后...转载 2019-07-01 20:40:32 · 3397 阅读 · 0 评论