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.
source: http://stackoverflow.com/questions/11445143/django-access-file-on-server
Using django: using-django
Recent Comments