From e67602b855bb5f70a8b6392126ac5d09d310554c Mon Sep 17 00:00:00 2001 From: Anna Shamray Date: Wed, 26 Feb 2025 17:23:33 +0100 Subject: [PATCH 1/2] :bug: update settings and imports after updating OAF --- src/objects/conf/base.py | 2 -- src/objects/utils/autoschema.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/objects/conf/base.py b/src/objects/conf/base.py index 84be265d..a3f220de 100644 --- a/src/objects/conf/base.py +++ b/src/objects/conf/base.py @@ -3,8 +3,6 @@ from .api import * # noqa -init_sentry() - DATABASES["default"]["ENGINE"] = "django.contrib.gis.db.backends.postgis" diff --git a/src/objects/utils/autoschema.py b/src/objects/utils/autoschema.py index a20d29ec..13e39177 100644 --- a/src/objects/utils/autoschema.py +++ b/src/objects/utils/autoschema.py @@ -6,7 +6,7 @@ from drf_spectacular.plumbing import build_parameter_type, get_view_model from drf_spectacular.utils import OpenApiParameter from vng_api_common.geo import DEFAULT_CRS, HEADER_ACCEPT, HEADER_CONTENT -from vng_api_common.inspectors.view import HTTP_STATUS_CODE_TITLES +from vng_api_common.schema import HTTP_STATUS_CODE_TITLES from objects.api.mixins import GeoMixin From 0ad465ae4cc1d1f02b5b3a6b5b51d4223046b761 Mon Sep 17 00:00:00 2001 From: Anna Shamray Date: Wed, 26 Feb 2025 17:30:47 +0100 Subject: [PATCH 2/2] :memo: update env docs --- docs/installation/config.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation/config.rst b/docs/installation/config.rst index 0e85f4ba..8f26c54a 100644 --- a/docs/installation/config.rst +++ b/docs/installation/config.rst @@ -96,12 +96,12 @@ Optional * ``NUM_PROXIES``: the number of reverse proxies in front of the application, as an integer. This is used to determine the actual client IP adres. On Kubernetes with an ingress you typically want to set this to 2. Defaults to: ``1``. * ``CSRF_TRUSTED_ORIGINS``: A list of trusted origins for unsafe requests (e.g. POST). Defaults to: ``[]``. * ``NOTIFICATIONS_DISABLED``: indicates whether or not notifications should be sent to the Notificaties API for operations on the API endpoints. Defaults to ``True`` for the ``dev`` environment, otherwise defaults to ``False``. +* ``SENTRY_DSN``: URL of the sentry project to send error reports to. Default empty, i.e. -> no monitoring set up. Highly recommended to configure this. * ``DISABLE_2FA``: Whether or not two factor authentication should be disabled. Defaults to: ``False``. * ``LOG_OUTGOING_REQUESTS_EMIT_BODY``: Whether or not outgoing request bodies should be logged. Defaults to: ``True``. * ``LOG_OUTGOING_REQUESTS_DB_SAVE``: Whether or not outgoing request logs should be saved to the database. Defaults to: ``False``. * ``LOG_OUTGOING_REQUESTS_DB_SAVE_BODY``: Whether or not outgoing request bodies should be saved to the database. Defaults to: ``True``. * ``LOG_OUTGOING_REQUESTS_MAX_AGE``: The amount of time after which request logs should be deleted from the database. Defaults to: ``7``. -* ``SENTRY_DSN``: URL of the sentry project to send error reports to. Default empty, i.e. -> no monitoring set up. Highly recommended to configure this.