Skip to content

Conversation

@mandarvaze
Copy link
Contributor

This makes it python3 compatible.
json.loads(request.data) breaks in python3, you get the following error :

   TypeError: the JSON object must be str, not 'bytes'

This makes it python3 compatible.
json.loads(request.data) breaks in python3, you get the following error :

.. code-block:: console

   TypeError: the JSON object must be str, not 'bytes'
amleczko added a commit that referenced this pull request Jun 28, 2015
use request.get_json() in login view sample code
@amleczko amleczko merged commit 5422fbb into pyeve:master Jun 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants