notification app, api for device registration and fcm token

This commit is contained in:
abutalib-kiwi
2023-07-18 14:06:04 +05:30
parent 04342133ef
commit ba4d5933de
15 changed files with 142 additions and 1 deletions

View File

@ -54,6 +54,7 @@ INSTALLED_APPS = [
'corsheaders',
'django.contrib.postgres',
'rest_framework',
'fcm_django',
# Add your custom apps here.
'django_ses',
'account',
@ -208,6 +209,18 @@ CORS_ALLOW_HEADERS = (
'x-requested-with',
)
CORS_EXPOSE_HEADERS = (
'Access-Control-Allow-Origin: *',
)
# fcm django settings
FCM_DJANGO_SETTINGS = {
"APP_VERBOSE_NAME": "ZOD_Bank",
"ONE_DEVICE_PER_USER": False,
"DELETE_INACTIVE_DEVICES": True,
"UPDATE_ON_DUPLICATE_REG_ID": True,
}
"""Static files (CSS, JavaScript, Images)
https://docs.djangoproject.com/en/3.0/howto/static-files/"""