diff --git a/amadeus/settings.py b/amadeus/settings.py index 880f4b4..5e8a0fd 100644 --- a/amadeus/settings.py +++ b/amadeus/settings.py @@ -57,6 +57,7 @@ INSTALLED_APPS = [ 'django_cron', 'channels', 'resubmit', # Utilizado para salvar arquivos na cache, para caso o formulario não seja preenchido corretamente o usuário não precise fazer o upload outra vez dos arquivos + 'fcm_django', 'amadeus', 'users', @@ -223,6 +224,17 @@ CHANNEL_LAYERS = { }, } +FCM_DJANGO_SETTINGS = { + "FCM_SERVER_KEY": "AAAA9XnDjxo:APA91bF-Cpz-GxeNBwHwWVq17reoCpEtQcX_3okZ0BU5qUdbyQ9QCamQfy0XQTkY74ksdEnQB0xLBiyNo99es0a0U5C-SmZd3oGt75nHpg3iVtXUc_mcqlSq4p9hBhG7BWXvzBVFdGt_", + # true if you want to have only one active device per registered user at a time + # default: False + "ONE_DEVICE_PER_USER": False, + # devices to which notifications cannot be sent, + # are deleted upon receiving error response from FCM + # default: False + "DELETE_INACTIVE_DEVICES": False, +} + #SECURITY SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO','https') diff --git a/requirements.txt b/requirements.txt index 3cf3735..80ed501 100644 --- a/requirements.txt +++ b/requirements.txt @@ -62,3 +62,6 @@ whitenoise==3.2.2 xlrd==1.0.0 xlwt==1.2.0 zope.interface==4.3.3 +fcm-django==0.2.11 +pyfcm==1.3.1 +requests-toolbelt==0.8.0 \ No newline at end of file -- libgit2 0.21.2