bogdal / django-gcm

Google Cloud Messaging Server in Django
https://django-gcm.readthedocs.org
BSD 2-Clause "Simplified" License
98 stars 42 forks source link

json.loads() expect a str - with python 3.4, response.content is bytes #37

Closed rclsilver closed 8 years ago

rclsilver commented 8 years ago

I'm just forcing response.content to be str.

Maybe we could use force_text() from django to achieve this in a proper way?

Could you push the new version including this PR and the following commit: https://github.com/bogdal/django-gcm/commit/fa8a1f0ebf387e6e5eb950584d0ba0251c07b425

Thanks you for your work!

Thomas.

bogdal commented 8 years ago

Thanks!