Skip to content

Commit

Permalink
feat(deps): introduce django_action_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Feb 19, 2024
1 parent 17aae4d commit 850f001
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis_ontology/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
INSTALLED_APPS += ["apis_highlighter", "django.contrib.postgres", "apis_core.collections"]
INSTALLED_APPS.remove("apis_ontology")
INSTALLED_APPS.insert(0, "apis_ontology")
INSTALLED_APPS += ["django_action_logger"]

ROOT_URLCONF = 'apis_ontology.urls'

Expand Down Expand Up @@ -35,3 +36,5 @@
"level": "DEBUG",
},
}

LOG_LIST_NOSTAFF_EXCLUDE_APP_LABELS = ["reversion", "admin", "sessions", "auth"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "base.html" %}

{% block content %}
<div class="container">
{% include "django_action_logger/logentrylist.html" %}
</div>
{% endblock %}
1 change: 1 addition & 0 deletions apis_ontology/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
]

urlpatterns += staticfiles_urlpatterns()
urlpatterns += [path("logger/", include("django_action_logger.urls")),]
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ psycopg2 = "^2.9"
apis-core = {git = "https://github.com/acdh-oeaw/apis-core-rdf", rev = "v0.13.0"}
apis-highlighter-ng = "^0.1.4"
apis-acdhch-default-settings = "0.1.24"
django-action-logger = "^0.1.3"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 850f001

Please sign in to comment.