remove elasticsearch from seting
This commit is contained in:
@@ -123,15 +123,6 @@ MONGODB_DATABASES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
# 'default': {
|
|
||||||
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
||||||
# 'NAME': "postgres",
|
|
||||||
# 'HOST': "monte-rosa.liara.cloud",
|
|
||||||
# 'USER': "root",
|
|
||||||
# 'PASSWORD': "aFC3hqbxxR0SeBPZ6TCZ37my",
|
|
||||||
# 'PORT': '32718'
|
|
||||||
# },
|
|
||||||
|
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
'NAME': os.environ.get("DB_NAME"),
|
'NAME': os.environ.get("DB_NAME"),
|
||||||
@@ -272,30 +263,6 @@ REST_CAPTCHA = {
|
|||||||
'NOISE_FUNCTION': 'apps.captcha_app.api.v1.serializers.noise_default'
|
'NOISE_FUNCTION': 'apps.captcha_app.api.v1.serializers.noise_default'
|
||||||
}
|
}
|
||||||
|
|
||||||
ELASTICSEARCH_DSL = {
|
|
||||||
# elastic HSA256 finger print f7d94c1da0668ba7874e5e09c3b1b91284fcdda97c361e0165401dc9375531b0 # noqa
|
|
||||||
# liara elastic password uYkiQ860vLW8DIbWpNjqtz2B # noqa
|
|
||||||
# local system password =z66+LCIebq4NQRR_+=R # noqa
|
|
||||||
"default": {
|
|
||||||
"hosts": "http://monte-rosa.liara.cloud:31157", # noqa
|
|
||||||
"http_auth": ("elastic", "uYkiQ860vLW8DIbWpNjqtz2B"), # noqa
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# 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
|
# 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
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class PageViewSet(SoftDeleteMixin, viewsets.ModelViewSet):
|
|||||||
""" all pages """
|
""" all pages """
|
||||||
|
|
||||||
page = self.paginate_queryset(self.queryset.order_by('-create_date'))
|
page = self.paginate_queryset(self.queryset.order_by('-create_date'))
|
||||||
if page is not None:
|
if page is not None: # noqa
|
||||||
serializer = self.get_serializer(page, many=True)
|
serializer = self.get_serializer(page, many=True)
|
||||||
return self.get_paginated_response(serializer.data)
|
return self.get_paginated_response(serializer.data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user