pyeve / eve-sqlalchemy

SQLAlchemy data layer for Eve-powered RESTful APIs
http://eve-sqlalchemy.readthedocs.io
Other
232 stars 70 forks source link

use request.get_json() in login view sample code #51

Closed mandarvaze closed 9 years ago

mandarvaze commented 9 years ago

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'