
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 · 625 阅读 · 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 · 3526 阅读 · 0 评论