原文: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),
]
本文解决了一个关于Django 1.10版本中URL配置的问题,指出在1.10版本之后不再支持字符串形式的URL配置,并提供了一个具体的修正案例。
1313

被折叠的 条评论
为什么被折叠?



