最近手上一个项目需要通过APNS向app推送消息,由于后端采用drf框架,在github上找了好多模块,最终发现pzanitti大神的推送模块 django-push-notifications 比较好用,特此感谢pzanitti大神,也像大家推荐使用.下面是我的配置流程仅供参考,大家可以根据需求进行修改. 1.模块Dependencies Python 2.7 or 3.4+ Django 1.11+ For the API module, Django REST Framework 3.7+