Skip to content

Instantly share code, notes, and snippets.

@chantra
Created August 21, 2015 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chantra/16e788790ee03481ac7c to your computer and use it in GitHub Desktop.
Save chantra/16e788790ee03481ac7c to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/rest_framework/views.py", line 466, in dispatch
response = self.handle_exception(exc)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/rest_framework/views.py", line 463, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/local/src/atc/atc/django-atc-api/atc_api/views.py", line 40, in decorator
return method(cls, request, service, *args, **kwargs)
File "/usr/local/src/atc/atc/django-atc-api/atc_api/views.py", line 58, in get
data=request.DATA,
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/rest_framework/request.py", line 444, in __getattribute__
return super(Request, self).__getattribute__(attr)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/rest_framework/request.py", line 455, in DATA
'`request.DATA` has been deprecated in favor of `request.data` '
NotImplementedError: `request.DATA` has been deprecated in favor of `request.data` since version 3.0, and has been fully removed as of version 3.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment