Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.6 friendly imports. #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

@bahoo
Copy link
Author

bahoo commented Oct 16, 2014

This builds on my previous pull request #2 and adds support for specifying an encoder, as mentioned here:

https://github.com/pusher/pusher_client_python#advanced-usage

My specific use-case was Decimals not being serialized properly, which Django's encoder can handle. See: http://stackoverflow.com/a/13257845/412290

Usage:

from django.core.serializers.json import DjangoJSONEncoder
PUSHER_ENCODER = DjangoJSONEncoder

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.

1 participant