- Where Developers Learn, Share, & Build Careers


I'm using Django to send iOS push notifications. To do this, I need to access the currently stored .pem certificate file on the server in my app directory with view.py, models.py, admin.py, and so on. When I try to send push notifications to a dragon shell, everything works fine on the server, but when I try to send a push notification using a DjangoView, it does not send me and gives me an SSLLRer is. I think this is because Django can not find the .pem certificate file.

In short, I'm wondering how a Django view function can be read in another file on the server.

No problem, I tried to redo it using an absolute file path, and I did this work after restarting Django.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -