Skip to content

Commit

Permalink
Merge pull request #535 from maykinmedia/issue/update-oaf
Browse files Browse the repository at this point in the history
🐛 update settings and imports after updating OAF
  • Loading branch information
annashamray authored Feb 26, 2025
2 parents c52399b + 0ad465a commit 58dcb82
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.



Expand Down
2 changes: 0 additions & 2 deletions src/objects/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

from .api import * # noqa

init_sentry()

DATABASES["default"]["ENGINE"] = "django.contrib.gis.db.backends.postgis"


Expand Down
2 changes: 1 addition & 1 deletion src/objects/utils/autoschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 58dcb82

Please sign in to comment.