import changes in notification

This commit is contained in:
2025-10-08 11:13:01 +03:30
parent cad4ccbe4b
commit f1a209a166
9 changed files with 104 additions and 25 deletions

View File

@@ -76,10 +76,12 @@ INSTALLED_APPS = [
'drf_yasg',
"django_celery_results",
"django_celery_beat",
"elasticapm.contrib.django",
]
MIDDLEWARE = [
'elasticapm.contrib.django.middleware.TracingMiddleware',
'apps.core.middlewares.Json500Middleware',
'corsheaders.middleware.CorsMiddleware', # noqa
'django.middleware.security.SecurityMiddleware',
@@ -92,7 +94,7 @@ MIDDLEWARE = [
'apps.authentication.middlewares.BlockedTokenMiddleware',
'crum.CurrentRequestUserMiddleware', # noqa
'apps.log.middlewares.SaveLog',
'apps.pos_device.middlewares.PosDeviceValidationMiddleware'
'apps.pos_device.middlewares.PosDeviceValidationMiddleware',
]
ROOT_URLCONF = 'Rasaddam_Backend.urls' # noqa
@@ -276,6 +278,20 @@ ELASTICSEARCH_DSL = {
}
}
ELASTIC_APM = {
'SERVICE_NAME': 'rasaddam-backend', # noqa
'SECRET_TOKEN': 'T1hTTnZwa0JJbFhUVTBsQVRnbTc6cHpWVUloSklUaXViYllCdE9IQkFYQQ==', # noqa
'SERVER_URL': 'http://apm.rasadyar.com', # noqa
'ENVIRONMENT': 'production', # noqa
'DEBUG': True,
'ELASTIC_APM_LOG_LEVEL': 'trace'
}
# Password validation
# https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators