Sorry forgot to attach my config/dependencies:
*Output of pip freeze:*
certifi==2017.11.5
chardet==3.0.4
coverage==4.4.2
Django==2.0.1
django-reversion==2.0.12
django-reversion-compare==0.8.3
djangorestframework==3.7.7
djangorestframework-jwt==1.11.0
idna==2.6
PyJWT==1.5.3
pytz==2017.3
requests==2.18.4
urllib3==1.22
On Monday, January 22, 2018 at 4:29:16 PM UTC-5, Leo T wrote:
>
> The following code produces the following error. Have I missed something?
> I followed the attached doc.
>
> *Code:*
> client = RequestsClient()
> client.headers.update({'x-test': 'true'})
>
> *Error:*
> AttributeError: 'Client' object has no attribute 'headers'
>
> *Doc:*
>
> http://www.django-rest-framework.org/api-guide/testing/#headers-authentication
>
>
> Thanks for the help
>
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.