I am trying to implement Apple Push Notification using python and django.
i am using following library to implement it
http://leepa.github.com/django-iphone-
In my case, what worked for me is like below:
Use the full path like
apns = APNs(use_sandbox=True, cert_file='/usr/local/etc/cert.pem', key_file='/usr/local/etc/key.pem')
rather than
apns = APNs(use_sandbox=True, cert_file='cert.pem', key_file='key.pem')