update test

This commit is contained in:
2025-10-08 14:39:25 +03:30
parent b25514d436
commit 608dd4df79

View File

@@ -76,12 +76,12 @@ INSTALLED_APPS = [
'drf_yasg', 'drf_yasg',
"django_celery_results", "django_celery_results",
"django_celery_beat", "django_celery_beat",
"elasticapm.contrib.django", # "elasticapm.contrib.django",
] ]
MIDDLEWARE = [ MIDDLEWARE = [
'elasticapm.contrib.django.middleware.TracingMiddleware', # 'elasticapm.contrib.django.middleware.TracingMiddleware',
'apps.core.middlewares.Json500Middleware', 'apps.core.middlewares.Json500Middleware',
'corsheaders.middleware.CorsMiddleware', # noqa 'corsheaders.middleware.CorsMiddleware', # noqa
'django.middleware.security.SecurityMiddleware', 'django.middleware.security.SecurityMiddleware',
@@ -278,19 +278,19 @@ ELASTICSEARCH_DSL = {
} }
} }
ELASTIC_APM = { # ELASTIC_APM = {
'SERVICE_NAME': 'rasaddam-backend', # noqa # 'SERVICE_NAME': 'rasaddam-backend', # noqa
#
'SECRET_TOKEN': 'T1hTTnZwa0JJbFhUVTBsQVRnbTc6cHpWVUloSklUaXViYllCdE9IQkFYQQ==', # noqa # 'SECRET_TOKEN': 'T1hTTnZwa0JJbFhUVTBsQVRnbTc6cHpWVUloSklUaXViYllCdE9IQkFYQQ==', # noqa
#
'SERVER_URL': 'http://apm.rasadyar.com', # noqa # 'SERVER_URL': 'http://apm.rasadyar.com', # noqa
#
'ENVIRONMENT': 'production', # noqa # 'ENVIRONMENT': 'production', # noqa
#
'DEBUG': True, # 'DEBUG': True,
#
'ELASTIC_APM_LOG_LEVEL': 'trace' # 'ELASTIC_APM_LOG_LEVEL': 'trace'
} # }
# Password validation # Password validation
# https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators # https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators