TypeError: view must be a callable or a list/tuple in the case of include()
1、django增加文件上传功能时,总是提醒url.py中
1 |
|
出错:
1 |
|
2、最后原因:django1.10不再支持 “django.views.static.serve”这种用法; 3、把上面的语句改为:
1 |
|
TypeError: view must be a callable or a list/tuple in the case of include()
https://www.shangyexin.com/2018/04/11/django-typeerror/