其他分享
首页 > 其他分享> > django 报错“ init() takes 1 positional argument but 2 were given “

django 报错“ init() takes 1 positional argument but 2 were given “

作者:互联网

报错" init() takes 1 positional argument but 2 were given "

urlpatterns = [
	path('', views.ArticleList.as_view(), name='list'),
]

如果继续报错:" AttributeError: ‘function’ object has no attribute ‘as_view’ "

标签:given,takes,argument,视图,报错,器是,装饰,view
来源: https://blog.csdn.net/qq_43510829/article/details/115429355