Skip to content

Commit

Permalink
chore: cleanup settings file
Browse files Browse the repository at this point in the history
The APIS_LIST_LINKS_TO_EDIT setting is not used anymore in apis-core
The LOGGING setting is now part of the default settings app
The APIS_BASE_URI is set automatically by the default settings app
The LOG_LIST_NOSTAFF_EXCLUDE_APP_LABELS setting was for the
django-action-logger, which is not used anymore.
  • Loading branch information
b1rger committed Oct 21, 2024
1 parent f64e143 commit 1f1f300
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions apis_ontology/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,13 @@
CSRF_TRUSTED_ORIGINS = ["https://oebl-pnp.acdh-dev.oeaw.ac.at"]


APIS_LIST_LINKS_TO_EDIT = True


LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"verbose": {
"format": "%(asctime)s %(name)-6s %(levelname)-8s %(message)s",
},
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "verbose",
},
},
"root": {
"handlers": ["console"],
"level": "DEBUG",
},
}

LOG_LIST_NOSTAFF_EXCLUDE_APP_LABELS = ["reversion", "admin", "sessions", "auth"]

LANGUAGE_CODE = "de"

MIDDLEWARE += [ # noqa: F405
"auditlog.middleware.AuditlogMiddleware",
"simple_history.middleware.HistoryRequestMiddleware",
]

APIS_BASE_URI = "https://oebl-pfp.acdh-ch-dev.oeaw.ac.at"

# this is a workaround to disable pagintation in the relations
# listing on the entities pages
APIS_ENTITIES = {
Expand Down

0 comments on commit 1f1f300

Please sign in to comment.