APNS_SANDBOX should be a bool.

Fixes: #1480
This commit is contained in:
Umair Khan 2016-08-03 13:41:39 +05:00 committed by Tim Abbott
parent cdd03dec4d
commit 0b88deb640
2 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,9 @@ connection = None
# by the Dropbox certs (and have an app id of com.dropbox.zulip)
dbx_connection = None
# `APNS_SANDBOX` should be a bool
assert isinstance(settings.APNS_SANDBOX, bool)
def get_apns_key(token):
return 'apns:' + token

View File

@ -76,7 +76,7 @@ S3_BUCKET="humbug-user-uploads"
S3_AUTH_UPLOADS_BUCKET = "zulip-user-uploads"
S3_AVATAR_BUCKET="humbug-user-avatars"
APNS_SANDBOX = "push_production"
APNS_SANDBOX = False
APNS_FEEDBACK = "feedback_production"
APNS_CERT_FILE = "/etc/ssl/django-private/apns-dist.pem"
DBX_APNS_CERT_FILE = "/etc/ssl/django-private/dbx-apns-dist.pem"