对象不支持项赋值

2024-05-15 18:50:38 发布

您现在位置:Python中文网/ 问答频道 /正文

奥拉!在

我不知道我的“/”到底是怎么回事。 工作正常,但现在出现此问题:

Traceback:  

File "/home/guilherme/.virtualenvs/api/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  149.                     response = self.process_exception_by_middleware(e, request)

File "/home/guilherme/.virtualenvs/api/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/guilherme/.virtualenvs/api/local/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
  58.         return view_func(*args, **kwargs)

File "/home/guilherme/.virtualenvs/api/local/lib/python2.7/site-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)

File "/home/guilherme/.virtualenvs/api/local/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
  477.             response = self.handle_exception(exc)

File "/home/guilherme/.virtualenvs/api/local/lib/python2.7/site-packages/rest_framework/views.py" in handle_exception
  437.             self.raise_uncaught_exception(exc)

File "/home/guilherme/.virtualenvs/api/local/lib/python2.7/site-packages/rest_framework/views.py" in raise_uncaught_exception
  448.         raise exc

Exception Type: TypeError at /
Exception Value: 'Link' object does not support item assignment
Request information:
GET: No GET data

有人知道会发生什么吗?在

Tks公司

(对不起我糟糕的英语)


Tags: djangoinpyapihomeresponselibpackages