Add notification
into INSTALLED_APPS
in settings.py
file
INSTALLED_APPS += (
'notification',
)
Add notification
routing in urls.py
file
from django.conf.urls import include
urlpatterns += (
url(r'^ios/', include('notification.urls', namespace='notification')),
)
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver
Please access http://127.0.0.1:8000/cert_upload and login by superuser, then upload push notification’s certificate.
Note
$ openssl pkcs12 -in hoge.p12 -out hoge.pem -nodes -clcerts