django 运行报错view must be a callable or a list/tuple in the case of include()
来源:互联网 发布:zuk z2优化相机 编辑:程序博客网 时间:2024/06/05 15:03
原文:http://www.cnblogs.com/mgwm/p/6364597.html
view must be a callable or a list/tuple in the case of include()
是因为django 1.10之后不在支持URL用字符串表示了 ;或者定义的url存在问题
所以修改 urls.py 中的定义url即可
from myindex.bb import hi import myindex urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^index', hi), ]
阅读全文
0 0
- django 运行报错view must be a callable or a list/tuple in the case of include()
- django 运行报错view must be a callable or a list/tuple in the case of include()
- django 单元测试报错: view must be a callable or a list/tuple in the case of include().
- TypeError: view must be a callable or a list/tuple in the case of include()
- TypeError: view must be a callable or a list/tuple in the case of include().
- TypeError: view must be a callable or a list/tuple in the case of include().解决办法
- TypeError: view must be a callable or a list/tuple in the case of include()
- TypeError: view must be a callable or a list/tuple in the case of include()
- python django1.10解决view must be a callable list/tuple in case of include()
- python 学习---isinstance() arg 2 must be a type or tuple of types
- 解决android报错IllegalArgumentException: parameter must be a descendant of this view
- The type OneInterface cannot be a superinterface of OneInterfaceImpl; a superinterface must be an in
- Caused by: android.view.InflateException: You must specifiy a layout in the include tag: <include la
- Caused by: android.view.InflateException: You must specifiy a layout in the include tag: <include la
- Eclipse启动报错A Java Runtime Environment or Java Developement Kit must be available in order to run ...
- eslipse 开启报错A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in orde
- ScrollView中EditText报java.lang.IllegalArgumentException: parameter must be a descendant of this view
- oracle 《is declared in a package specification and must be defined in the package body报错原因》
- Qt下使用glut库
- 【后缀自动机】HDU4622[Reincarnation]题解
- intent和view
- http协议?
- iOS之Tableview重用出现的错乱三种解决方法
- django 运行报错view must be a callable or a list/tuple in the case of include()
- PHP中的错误级别
- 二叉搜索树与双向链表
- 云笔记项目 Unit07
- ubuntu初始配置
- Alice and Bob HDU
- Android代码方式操作应用程序安装、卸载、分享、启动
- MOOC清华《程序设计基础》第5章:快速排序(分配动态空间)
- Linux下安装Nginx服务器