Author: ChainNewsYan Github: https://github.com/ChainNewsYan/django-jpush jpush python jiguang 极光 推送 django DRF This is a package for django.
Add "djpush" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'djpush', ]
Include the polls URLconf in your project urls.py like this:
url(r'^djpush/register', include('djpush.urls.register', namespace='djpush-register')), url(r'^djpush/push', include('djpush.urls.push', namespace='djpush-push')),
Run python manage.py migrate to create the polls models.
DEV_KEY = '' DEV_SECRET = '' APP_KEY = '' MASTER_SECRET = ''