parent
73c18bfbf8
commit
ff8788c527
@ -1,57 +1,55 @@ |
||||
|
||||
|
||||
# Rest Framework configuration |
||||
REST_FRAMEWORK = { |
||||
'DATETIME_FORMAT': "%Y-%m-%dT%H:%M:%S.%f%z", |
||||
"DATETIME_FORMAT": "%Y-%m-%dT%H:%M:%S.%f%z", |
||||
# Use Django's standard `django.contrib.auth` permissions, |
||||
# or allow read-only access for unauthenticated users. |
||||
'DEFAULT_PERMISSION_CLASSES': [ |
||||
'rest_framework.permissions.IsAuthenticated', |
||||
"DEFAULT_PERMISSION_CLASSES": [ |
||||
"rest_framework.permissions.IsAuthenticated", |
||||
], |
||||
"DEFAULT_AUTHENTICATION_CLASSES": [ |
||||
"rest_framework.authentication.BasicAuthentication", |
||||
"rest_framework.authentication.TokenAuthentication", |
||||
"rest_framework.authentication.SessionAuthentication", |
||||
], |
||||
'DEFAULT_AUTHENTICATION_CLASSES': [ |
||||
'rest_framework.authentication.BasicAuthentication', |
||||
'rest_framework.authentication.TokenAuthentication', |
||||
'rest_framework.authentication.SessionAuthentication', |
||||
] |
||||
} |
||||
|
||||
EMAIL_HOST_USER = 'automatic@padelclub.app' |
||||
EMAIL_HOST_PASSWORD = 'XLR@Sport@2024' |
||||
DEFAULT_FROM_EMAIL = 'Padel Club <automatic@padelclub.app>' |
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' |
||||
EMAIL_HOST = 'smtp-xlr.alwaysdata.net' |
||||
EMAIL_HOST_USER = "automatic@padelclub.app" |
||||
EMAIL_HOST_PASSWORD = "XLR@Sport@2024" |
||||
DEFAULT_FROM_EMAIL = "Padel Club <automatic@padelclub.app>" |
||||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" |
||||
EMAIL_HOST = "smtp-xlr.alwaysdata.net" |
||||
EMAIL_PORT = 587 |
||||
EMAIL_USE_TLS = True |
||||
|
||||
CACHES = { |
||||
'default': { |
||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', |
||||
"default": { |
||||
"BACKEND": "django.core.cache.backends.locmem.LocMemCache", |
||||
}, |
||||
"qr-code": { |
||||
"BACKEND": "django.core.cache.backends.locmem.LocMemCache", |
||||
"LOCATION": "qr-code-cache", |
||||
"TIMEOUT": 3600, |
||||
}, |
||||
'qr-code': { |
||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', |
||||
'LOCATION': 'qr-code-cache', |
||||
'TIMEOUT': 3600 |
||||
} |
||||
} |
||||
|
||||
QR_CODE_CACHE_ALIAS = 'qr-code' |
||||
QR_CODE_CACHE_ALIAS = "qr-code" |
||||
|
||||
SYNC_APPS = { |
||||
'sync': {}, |
||||
'tournaments': { 'exclude': ['Log', 'FailedApiCall', 'DeviceToken', 'Image'] }, |
||||
'biz': {}, |
||||
"sync": {}, |
||||
"tournaments": {"exclude": ["Log", "FailedApiCall", "DeviceToken", "Image"]}, |
||||
# 'biz': {}, |
||||
} |
||||
|
||||
SYNC_MODEL_CHILDREN_SHARING = { |
||||
'Match': ['team_scores', 'team_registration', 'player_registrations'] |
||||
"Match": ["team_scores", "team_registration", "player_registrations"] |
||||
} |
||||
|
||||
STRIPE_CURRENCY = 'eur' |
||||
STRIPE_CURRENCY = "eur" |
||||
# Add managers who should receive internal emails |
||||
SHOP_MANAGERS = [ |
||||
('Shop Admin', 'shop-admin@padelclub.app'), |
||||
("Shop Admin", "shop-admin@padelclub.app"), |
||||
# ('Laurent Morvillier', 'laurent@padelclub.app'), |
||||
# ('Xavier Rousset', 'xavier@padelclub.app'), |
||||
] |
||||
SHOP_SITE_ROOT_URL = 'https://padelclub.app' |
||||
SHOP_SUPPORT_EMAIL = 'shop@padelclub.app' |
||||
SHOP_SITE_ROOT_URL = "https://padelclub.app" |
||||
SHOP_SUPPORT_EMAIL = "shop@padelclub.app" |
||||
|
||||
Loading…
Reference in new issue