Using django: Django Access File on Server on newest questions tagged django – Stack Overflow
I’m using Django to send iOS push notifications. To do that, I need to access a .pem certificate file currently stored on the server in my app directory along with views.py, models.py, admin.py, etc. When I try to send a push notification from a python shell on the server, everything works fine. But when I try to send a push notification by accessing a Django view, it doesn’t send and gives me an SSLError. I think that this is because Django can’t find the .pem certificate file.
In short, I’m wondering how a Django view function can read in another file on the server.
Using django: using-django