decorator() got an unexpected keyword argument
问题 I have this error on Django view: TypeError at /web/host/1/ decorator() got an unexpected keyword argument 'host_id' Request Method: GET Request URL: http://127.0.0.1:8000/web/host/1/edit Django Version: 1.10.4 Exception Type: TypeError Exception Value: decorator() got an unexpected keyword argument 'host_id' and the urlpatterns is: url(r'^host/(?P<host_id>[0-9]+)$', host, name='host'), the view function is : @check_login def host(request, host_id, *args, **kwargs): h = Host() # resultHost =