apis-acdhch-default-settings 2.3.1__tar.gz → 2.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. apis_acdhch_default_settings-2.5.0/.github/dependabot.yml +16 -0
  2. apis_acdhch_default_settings-2.5.0/.github/workflows/add-to-project.yml +20 -0
  3. apis_acdhch_default_settings-2.5.0/.github/workflows/publish.yml +50 -0
  4. apis_acdhch_default_settings-2.5.0/.github/workflows/release-please.yml +28 -0
  5. apis_acdhch_default_settings-2.5.0/.gitignore +7 -0
  6. apis_acdhch_default_settings-2.5.0/CHANGELOG.md +406 -0
  7. apis_acdhch_default_settings-2.5.0/PKG-INFO +30 -0
  8. apis_acdhch_default_settings-2.5.0/apis_acdhch_default_settings/querysets.py +42 -0
  9. {apis_acdhch_default_settings-2.3.1 → apis_acdhch_default_settings-2.5.0}/apis_acdhch_default_settings/settings.py +1 -2
  10. {apis_acdhch_default_settings-2.3.1 → apis_acdhch_default_settings-2.5.0}/apis_acdhch_default_settings/templates/base.html +6 -0
  11. apis_acdhch_default_settings-2.5.0/pyproject.toml +32 -0
  12. apis_acdhch_default_settings-2.3.1/PKG-INFO +0 -33
  13. apis_acdhch_default_settings-2.3.1/pyproject.toml +0 -28
  14. {apis_acdhch_default_settings-2.3.1 → apis_acdhch_default_settings-2.5.0}/LICENSE +0 -0
  15. {apis_acdhch_default_settings-2.3.1 → apis_acdhch_default_settings-2.5.0}/README.md +0 -0
  16. {apis_acdhch_default_settings-2.3.1 → apis_acdhch_default_settings-2.5.0}/apis_acdhch_default_settings/__init__.py +0 -0
  17. {apis_acdhch_default_settings-2.3.1 → apis_acdhch_default_settings-2.5.0}/apis_acdhch_default_settings/ldapauth.py +0 -0
  18. {apis_acdhch_default_settings-2.3.1 → apis_acdhch_default_settings-2.5.0}/apis_acdhch_default_settings/templates/imprint.html +0 -0
  19. {apis_acdhch_default_settings-2.3.1 → apis_acdhch_default_settings-2.5.0}/apis_acdhch_default_settings/urls.py +0 -0
  20. {apis_acdhch_default_settings-2.3.1 → apis_acdhch_default_settings-2.5.0}/apis_acdhch_default_settings/views.py +0 -0
@@ -0,0 +1,16 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
7
+ commit-message:
8
+ prefix: "chore"
9
+ include: "scope"
10
+ - package-ecosystem: "github-actions"
11
+ directory: "/"
12
+ schedule:
13
+ interval: "daily"
14
+ commit-message:
15
+ prefix: "ci"
16
+ include: "scope"
@@ -0,0 +1,20 @@
1
+ # SPDX-FileCopyrightText: 2024 K Kollmann
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ name: Add issues, PRs to Prosnet project
5
+
6
+ on:
7
+ issues:
8
+ types:
9
+ - opened
10
+ pull_request:
11
+ types:
12
+ - opened
13
+
14
+ jobs:
15
+ add-to-project:
16
+ uses: acdh-oeaw/prosnet-workflows/.github/workflows/add-to-project.yml@v0.4.7
17
+ secrets:
18
+ ADD_TO_PROJECT_TOKEN: ${{ secrets.ADD_TO_PROJECT_TOKEN }}
19
+ with:
20
+ PROJECT_NUM: 5
@@ -0,0 +1,50 @@
1
+ name: Publish Python 🐍 distribution 📦 to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [released]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ build:
10
+ name: Build distribution 📦
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.x"
19
+ - name: Install pypa/build
20
+ run: >-
21
+ python3 -m
22
+ pip install
23
+ build
24
+ --user
25
+ - name: Build a binary wheel and a source tarball
26
+ run: python3 -m build
27
+ - name: Store the distribution packages
28
+ uses: actions/upload-artifact@v4
29
+ with:
30
+ name: python-package-distributions
31
+ path: dist/
32
+
33
+ publish-to-pypi:
34
+ name: >-
35
+ Publish Python 🐍 distribution 📦 to PyPI
36
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
37
+ needs:
38
+ - build
39
+ runs-on: ubuntu-latest
40
+ permissions:
41
+ id-token: write # IMPORTANT: mandatory for trusted publishing
42
+
43
+ steps:
44
+ - name: Download all the dists
45
+ uses: actions/download-artifact@v4
46
+ with:
47
+ name: python-package-distributions
48
+ path: dist/
49
+ - name: Publish distribution 📦 to PyPI
50
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,28 @@
1
+ # SPDX-FileCopyrightText: 2023 Birger Schacht <birger.schacht@oeaw.ac.at>
2
+ # SPDX-License-Identifier: MIT
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ contents: write
10
+ pull-requests: write
11
+
12
+ name: release-please
13
+
14
+ jobs:
15
+ release-please:
16
+ permissions: write-all
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: google-github-actions/release-please-action@v3
20
+ id: release
21
+ with:
22
+ release-type: python
23
+ package-name: apis-acdhch-default-settings
24
+ - uses: actions/checkout@v4
25
+ - run: gh workflow run publish.yml
26
+ env:
27
+ GH_TOKEN: ${{ github.token }}
28
+ if: ${{ steps.release.outputs.release_created }}
@@ -0,0 +1,7 @@
1
+ # OS, IDEs, tooling
2
+ .idea/
3
+ .python-version
4
+
5
+ dist
6
+ **/__pycache__
7
+ *.lock
@@ -0,0 +1,406 @@
1
+ # Changelog
2
+
3
+ ## [2.5.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.4.0...v2.5.0) (2025-04-14)
4
+
5
+
6
+ ### Features
7
+
8
+ * **templates:** add a monitoring variable to the meta tags ([06a729d](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/06a729de0483ff208cf7f6021c64adae7830faf9))
9
+
10
+
11
+ ### Documentation
12
+
13
+ * **settings:** drop unnecessary comment ([5db1d0a](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/5db1d0ad38bb724e28dd842d0605345c09395eac)), closes [#188](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/188)
14
+
15
+ ## [2.4.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.3.1...v2.4.0) (2025-03-20)
16
+
17
+
18
+ ### Features
19
+
20
+ * **querysets:** add ExternalAutocomplete for E53_Place and E21_Person ([acd27d1](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/acd27d15fb4326fd4381de8963e8bbdf3b458a51))
21
+ * **settings:** set additional lookup module path ([dfe8d5c](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/dfe8d5ca3a701cb825bcce3f94f75a5a78398004))
22
+
23
+ ## [2.3.1](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.3.0...v2.3.1) (2025-02-28)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * **settings:** add resources used by leaflet to CSP_IMG_SRC ([c931735](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/c931735c12684b1820cf30a8004aecf636a8cc59))
29
+
30
+ ## [2.3.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.2.2...v2.3.0) (2025-02-28)
31
+
32
+
33
+ ### Features
34
+
35
+ * **settings:** (re)add Content Security Policy setting ([686da51](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/686da519184c4a945f08f454614b003277d7df94))
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * **settings:** drop apis_vocabularies from INSTALLED_APPS ([899b2d8](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/899b2d8b3806ee39b8db46bc5383edb8288901c8))
41
+
42
+ ## [2.2.2](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.2.1...v2.2.2) (2025-02-20)
43
+
44
+
45
+ ### Bug Fixes
46
+
47
+ * **settings:** move generic app further up in the INSTALLED_APPS list ([142e900](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/142e9009e9fb537641578dbf656408c88ef16638))
48
+
49
+ ## [2.2.1](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.2.0...v2.2.1) (2025-02-20)
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * **settings:** drop apis_override_select2js from INSTALLED_APPS ([e651b1b](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/e651b1b210eab55960fbe0eb264da202183b2287))
55
+
56
+ ## [2.2.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.1.0...v2.2.0) (2025-02-18)
57
+
58
+
59
+ ### Features
60
+
61
+ * **settings:** add `apis_core.relations` to INSTALLED_APPS ([bbbf42b](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/bbbf42bd60e29b4b8a6d12c5e893679d6b6446f1))
62
+ * **settings:** introduce a separate CSP setting for images ([ddf111f](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/ddf111f5e861d4e99d6c96a058c968460779ed77))
63
+
64
+
65
+ ### Bug Fixes
66
+
67
+ * **settings:** set default tables2 template to bootstrap5-reponsive ([4c2fa2c](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/4c2fa2c8385faeb16aaae0954bb53d5e60ae88cd)), closes [#167](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/167)
68
+
69
+ ## [2.1.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v2.0.0...v2.1.0) (2025-02-05)
70
+
71
+
72
+ ### Features
73
+
74
+ * **settings:** change default crispy & tables theme to bootstrap5 ([f1dfcfb](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/f1dfcfb40849fb28ef8ec92a1e3903f65b4eb400))
75
+
76
+ ## [2.0.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.8.0...v2.0.0) (2025-01-29)
77
+
78
+
79
+ ### ⚠ BREAKING CHANGES
80
+
81
+ * **settings:** drop apis_relations from INSTALLED_APPS
82
+
83
+ ### Features
84
+
85
+ * **settings:** drop apis_relations from INSTALLED_APPS ([eeea767](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/eeea7671afa9435d7c5996117ff84e50b3354f33))
86
+
87
+
88
+ ### Bug Fixes
89
+
90
+ * **settings:** drop deprecated USE_L10N setting ([7d1ee88](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/7d1ee88caf9f51199eec9464c2e31b32ac33f9d2)), closes [#144](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/144)
91
+ * **settings:** remove unused third party sources from CSP settings ([3188782](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/318878244f1bab6cadb1d4f217efdb1c167323e8)), closes [#82](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/82)
92
+
93
+ ## [1.8.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.7.0...v1.8.0) (2024-12-17)
94
+
95
+
96
+ ### Features
97
+
98
+ * **deps:** add django-removals dependency and add it to installed apps ([d60dfbb](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/d60dfbb6d8b47ed33c7a0cb54c1f38d4bb1b3d66)), closes [#122](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/122)
99
+ * **views:** replace utils with views ([ce4e839](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/ce4e839f5108ac44cfa9e9a2a9ca8f5f6bafda92)), closes [#134](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/134)
100
+
101
+
102
+ ### Bug Fixes
103
+
104
+ * **settings:** add HistoryRequestMiddleware ([7e66df2](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/7e66df2d103514535ac544fd9ed7f42746a7a590)), closes [#93](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/93)
105
+ * **settings:** replace os.path with pathlib.Path ([d0c77ba](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/d0c77ba075a3ae25927c077f19cdbdecb6038998))
106
+ * **settings:** set DEFAULT_AUTO_FIELD ([1208d9c](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/1208d9c66c6145c0d463217f13b59592059ec6f9))
107
+
108
+ ## [1.7.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.6.1...v1.7.0) (2024-12-03)
109
+
110
+
111
+ ### Features
112
+
113
+ * **urls:** include staticfiles_urlpatterns in default urls ([19101c7](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/19101c71197728c25e2e0439f0e48e1dc184fcd2)), closes [#131](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/131)
114
+
115
+ ## [1.6.1](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.6.0...v1.6.1) (2024-11-29)
116
+
117
+
118
+ ### Bug Fixes
119
+
120
+ * **settings:** set `LOGIN_REDIRECT_URL` to `/` ([18eea29](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/18eea29d38320000661acbbd3bd5cd1d2f44d2fa))
121
+
122
+ ## [1.6.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.5.0...v1.6.0) (2024-11-22)
123
+
124
+
125
+ ### Features
126
+
127
+ * **settings:** point LOGIN_URL to the default APIS login route ([4866b48](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/4866b48d22f8f26ef5aa771950bd421d50f44bfe)), closes [#123](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/123)
128
+
129
+
130
+ ### Documentation
131
+
132
+ * **settings:** point all Django documentation links to stable docs ([e08771a](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/e08771a7f78466a8ddefd4c0618fbc907540f7f7))
133
+
134
+ ## [1.5.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.4.0...v1.5.0) (2024-11-06)
135
+
136
+
137
+ ### Features
138
+
139
+ * **settings:** allow to set DEBUG from environment ([1677bf4](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/1677bf4b9bce8c1dc7f62f8c1f6ac400917dbd69))
140
+
141
+
142
+ ### Bug Fixes
143
+
144
+ * **urls:** drop inclusion of webpage app in urls ([fb3947c](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/fb3947c85ba711723b72453df7ebe7db8f9a189b)), closes [#114](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/114)
145
+
146
+ ## [1.4.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.3.0...v1.4.0) (2024-10-18)
147
+
148
+
149
+ ### Features
150
+
151
+ * **deps:** add opentelemetry dependencies ([845b4b2](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/845b4b24c79d66f0244743cdba45686cfb680486))
152
+
153
+
154
+ ### Bug Fixes
155
+
156
+ * **templates:** translate the imprint link ([5ded88c](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/5ded88ccba9cda48132d8d717b9fda5d2325a12c))
157
+
158
+ ## [1.3.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.2.2...v1.3.0) (2024-10-17)
159
+
160
+
161
+ ### Features
162
+
163
+ * **settings:** reuse PUBLIC_URL for APIS_BASE_URI ([f71b5b7](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/f71b5b7560050132c501eafad1228845c77db343)), closes [#107](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/107)
164
+
165
+ ## [1.2.2](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.2.1...v1.2.2) (2024-10-14)
166
+
167
+
168
+ ### Bug Fixes
169
+
170
+ * **template:** make imprint url handling more robust ([1009f15](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/1009f15e451470e25faf810410cf90c91bfe4f7c))
171
+
172
+ ## [1.2.1](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.2.0...v1.2.1) (2024-10-01)
173
+
174
+
175
+ ### Bug Fixes
176
+
177
+ * **settings:** drop csvexport from INSTALLED_APPS ([9963ca8](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/9963ca8c24e44ebba79e5bc17e42e723480ca879)), closes [#100](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/100)
178
+
179
+ ## [1.2.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.1.2...v1.2.0) (2024-09-30)
180
+
181
+
182
+ ### Features
183
+
184
+ * add imprint functionality ([6384f3c](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/6384f3ccf84b24a0dbb8fecbb8ee5541e1c7aad4))
185
+ * **settings:** set GIT_REPOSITORY_URL variable ([179b360](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/179b360f29a2aa1c8f9e3c349c371ef99d372109))
186
+
187
+ ## [1.1.2](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.1.1...v1.1.2) (2024-09-26)
188
+
189
+
190
+ ### Bug Fixes
191
+
192
+ * **settings:** move apis_relations before apis_entities ([ca045fd](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/ca045fd40c9601da1ef5c80577300f278a5d171f))
193
+
194
+ ## [1.1.1](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.1.0...v1.1.1) (2024-09-05)
195
+
196
+
197
+ ### Bug Fixes
198
+
199
+ * **INSTALLED_APPS:** move apis_core.core further down in the app list ([7f4ded7](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/7f4ded7a25fb90c938bfa44e8dd1ae7ded7cfe0b))
200
+ * **INSTALLED_APPS:** move apis_ontology before apis_core in app list ([6ae85d3](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/6ae85d37ba2320c39cffa4fa5d473f6301ba3b21)), closes [#29](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/29)
201
+
202
+ ## [1.1.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v1.0.0...v1.1.0) (2024-08-19)
203
+
204
+
205
+ ### Features
206
+
207
+ * **settings:** introduce logging configuration ([1a534c6](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/1a534c64678377880c93d1f353e5c5c7320c9346))
208
+
209
+
210
+ ### Bug Fixes
211
+
212
+ * **middlware:** add middleware to prevent clickjacking ([3105cea](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/3105cea46ee65b3af7dc2b0c436c80f46ae9d70e)), closes [#47](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/47)
213
+ * **settings:** drop unused settings ([19aff16](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/19aff16df8ce186ab7177d0e542cc673b4941fe9)), closes [#46](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/46)
214
+ * **spectacular:** set DEFAULT_GENERATOR_CLASS ([41d3c49](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/41d3c49d0985aa2bb7ea6fa7f83c4b0fa2a7514e)), closes [#84](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/84)
215
+
216
+ ## [1.0.0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.24...v1.0.0) (2024-04-08)
217
+
218
+
219
+ ### ⚠ BREAKING CHANGES
220
+
221
+ * drop reversion
222
+
223
+ ### Bug Fixes
224
+
225
+ * drop reversion ([d92cbe0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/d92cbe02e659231264d478907fb2cf18fcbcd612))
226
+
227
+ ## [0.1.24](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.23...v0.1.24) (2024-01-26)
228
+
229
+
230
+ ### Bug Fixes
231
+
232
+ * add ldap support ([4dfb76e](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/4dfb76e90c2a9a7ff1e834bf0645d55e15692c68))
233
+
234
+ ## [0.1.23](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.22...v0.1.23) (2024-01-19)
235
+
236
+
237
+ ### Bug Fixes
238
+
239
+ * add 'generic' app to INSTALLED_APPS ([6e2d382](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/6e2d3820ce7fc2051184c78e9065213e53e27fab))
240
+
241
+ ## [0.1.22](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.21...v0.1.22) (2023-12-20)
242
+
243
+
244
+ ### Bug Fixes
245
+
246
+ * set drf DEFAULT_PERMISSION_CLASSES to model permission ([91c4457](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/91c4457dbd0e4c54cd09b5c2c2510db5adb508ff))
247
+ * TEMPLATES: remove apis_ontology/templates from DIRS ([e7945e0](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/e7945e07bdf2865d1708ca0fedc627b18be7bb18))
248
+ * use random secret key instead of hardcoding it ([0f7e9e3](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/0f7e9e3d760104596c1f3b1bca950817c8ef1cce)), closes [#65](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/65)
249
+
250
+ ## [0.1.21](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.20...v0.1.21) (2023-12-19)
251
+
252
+
253
+ ### Bug Fixes
254
+
255
+ * typo in ROOT_URLCONF ([9840a10](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/9840a10c6c7097ec9c18f51d8a34f8e0d5515aa8))
256
+
257
+ ## [0.1.20](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.19...v0.1.20) (2023-12-19)
258
+
259
+
260
+ ### Bug Fixes
261
+
262
+ * bump default template pack for crispy ([9d8a3cb](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/9d8a3cb6450640e8b8a9a97bc634bbbc7ff94249))
263
+
264
+ ## [0.1.19](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.18...v0.1.19) (2023-12-19)
265
+
266
+
267
+ ### Bug Fixes
268
+
269
+ * add crispy_bootstrap4 to list of installed apps ([11f7300](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/11f7300294f3e4d9c2621318a1154fd70901a701))
270
+ * drop apis_labels from installed apps ([5c9a086](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/5c9a0864e5c3daac1d143b61312e057fc20c00f6))
271
+
272
+ ## [0.1.18](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.17...v0.1.18) (2023-12-13)
273
+
274
+
275
+ ### Bug Fixes
276
+
277
+ * drop deprecated context_processors ([ca114f3](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/ca114f3b08163d77b23ed146d82712248930c3f9)), closes [#55](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/55)
278
+
279
+ ## [0.1.17](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.16...v0.1.17) (2023-12-11)
280
+
281
+
282
+ ### Bug Fixes
283
+
284
+ * drop django-cors-headers related settings ([6620c56](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/6620c5612b238d8ee024b45101e852cdf8defdfe))
285
+
286
+ ## [0.1.16](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.15...v0.1.16) (2023-11-30)
287
+
288
+
289
+ ### Bug Fixes
290
+
291
+ * drop deprecated context_processors ([7aa4ce6](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/7aa4ce64ffd211552f21688324a4abedc74e485c))
292
+ * set ROOT_URLCONF to correct module ([2afd483](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/2afd483fb4dbafb26626ade3149c3ed6e86b9bb2))
293
+
294
+ ## [0.1.15](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.14...v0.1.15) (2023-11-29)
295
+
296
+
297
+ ### Bug Fixes
298
+
299
+ * get `ALLOWED_HOSTS` from `PUBLIC_URL` ([443b0c2](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/443b0c267e57b505832a0be8c962dba148792372)), closes [#28](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/28)
300
+
301
+ ## [0.1.14](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.13...v0.1.14) (2023-11-29)
302
+
303
+
304
+ ### Bug Fixes
305
+
306
+ * add initial README ([ad64d78](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/ad64d780830379cc4fbfee40f5f2096cab18b7a2))
307
+
308
+ ## [0.1.13](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.12...v0.1.13) (2023-11-29)
309
+
310
+
311
+ ### Bug Fixes
312
+
313
+ * provide default database setup ([911c0ec](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/911c0ec32908540aad65b85f9db2427556ff1da1)), closes [#33](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/33)
314
+
315
+ ## [0.1.12](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.11...v0.1.12) (2023-11-28)
316
+
317
+
318
+ ### Bug Fixes
319
+
320
+ * drop apis-override-select2js from dependencies ([0f7840f](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/0f7840f6b7657f3cc2b2f7df32a1d9992a233892))
321
+
322
+ ## [0.1.11](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.10...v0.1.11) (2023-11-24)
323
+
324
+
325
+ ### Bug Fixes
326
+
327
+ * disable sentry tracing ([aa7c401](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/aa7c4019ca72938ad51254c2ff723696c03d4eef))
328
+
329
+ ## [0.1.10](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.9...v0.1.10) (2023-10-19)
330
+
331
+
332
+ ### Bug Fixes
333
+
334
+ * include ALLOWED_CIDR_NETS into settings ([dcbcfb8](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/dcbcfb8bd1c5c3254fc0c3a936e6e1bf11a968cb)), closes [#19](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/19)
335
+
336
+ ## [0.1.9](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.8...v0.1.9) (2023-10-18)
337
+
338
+
339
+ ### Bug Fixes
340
+
341
+ * drop charts dependency ([d9ccb0f](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/d9ccb0f7d064dbbb92b36c7abea4761e42036c3b))
342
+ * drop WSGI_APPLICATION ([28aff2a](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/28aff2aa5e21b4b332bbfb7c95c4d54676724edf)), closes [#24](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/24)
343
+
344
+ ## [0.1.8](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.7...v0.1.8) (2023-10-05)
345
+
346
+
347
+ ### Bug Fixes
348
+
349
+ * add apis_core.core to installed apps ([7d65db9](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/7d65db9a5a09c5607d79a3bfcab69c977c054fbf))
350
+
351
+ ## [0.1.7](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.6...v0.1.7) (2023-09-13)
352
+
353
+
354
+ ### Bug Fixes
355
+
356
+ * remove the list view template override ([234ab87](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/234ab877f09a92e2e2bb9c2537e14ab30ee0d5f7))
357
+
358
+ ## [0.1.6](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.5...v0.1.6) (2023-09-01)
359
+
360
+
361
+ ### Bug Fixes
362
+
363
+ * drop ACDH_IMPRINT_URL ([1f43725](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/1f437257aa32496ce9af81311339dab5f5b15441))
364
+
365
+ ## [0.1.5](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.4...v0.1.5) (2023-08-23)
366
+
367
+
368
+ ### Bug Fixes
369
+
370
+ * drop override of default templates ([f9fea45](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/f9fea45713bd9fe8f687c0afc8c6d3b88775cb8e))
371
+
372
+ ## [0.1.4](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.3...v0.1.4) (2023-08-23)
373
+
374
+
375
+ ### Bug Fixes
376
+
377
+ * drop webpage ([71dc49d](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/71dc49d7ff3b02bfb642967ea5fa042d945fd439))
378
+
379
+ ## [0.1.3](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.2...v0.1.3) (2023-08-21)
380
+
381
+
382
+ ### Bug Fixes
383
+
384
+ * drop guardian settings ([167531e](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/167531e619d1ec0f429e35f342cba272404c377c))
385
+
386
+ ## [0.1.2](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.1...v0.1.2) (2023-08-18)
387
+
388
+
389
+ ### Bug Fixes
390
+
391
+ * **deps:** add whitenoise dependency ([d5c43ce](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/d5c43ceed7ab71cc725b56e4d5f6c05886121d6f)), closes [#3](https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues/3)
392
+ * **deps:** loosen Python dependency version constraints ([56cf49f](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/56cf49f0fc53b74ebbf6d1057c3876184f3b96b6))
393
+
394
+ ## [0.1.1](https://github.com/acdh-oeaw/apis-acdhch-default-settings/compare/v0.1.0...v0.1.1) (2023-08-16)
395
+
396
+
397
+ ### Bug Fixes
398
+
399
+ * **deps:** add apis-override-select2js to the dependencies ([422f8e2](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/422f8e2e948cbeee7bdb4f64a0735f9204eb5136))
400
+
401
+ ## 0.1.0 (2023-08-16)
402
+
403
+
404
+ ### Bug Fixes
405
+
406
+ * rename module folder to adhere to Python convention ([d9d873b](https://github.com/acdh-oeaw/apis-acdhch-default-settings/commit/d9d873b1b5decf53dcaa58cf4a0a95f6a2b3f944))
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.4
2
+ Name: apis-acdhch-default-settings
3
+ Version: 2.5.0
4
+ Summary: Default settings for APIS instances at the ACDH-CH
5
+ Project-URL: source, https://github.com/acdh-oeaw/apis-acdhch-default-settings
6
+ Project-URL: changelog, https://github.com/acdh-oeaw/apis-acdhch-default-settings/blob/main/CHANGELOG.md
7
+ Project-URL: issues, https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues
8
+ Author-email: Birger Schacht <birger.schacht@oeaw.ac.at>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Requires-Python: >=3.11
12
+ Requires-Dist: dj-database-url<3.0,>=2.0.0
13
+ Requires-Dist: django-allow-cidr<0.8,>=0.6
14
+ Requires-Dist: django-auth-ldap<5.0,>=4.6.0
15
+ Requires-Dist: django-csp<4.0,>=3.7
16
+ Requires-Dist: django-removals<=2.0,>=1.0.5
17
+ Requires-Dist: opentelemetry-distro
18
+ Requires-Dist: opentelemetry-exporter-otlp
19
+ Requires-Dist: opentelemetry-instrumentation-asgi
20
+ Requires-Dist: opentelemetry-instrumentation-django
21
+ Requires-Dist: opentelemetry-instrumentation-logging
22
+ Requires-Dist: opentelemetry-instrumentation-psycopg2
23
+ Requires-Dist: opentelemetry-instrumentation-wsgi
24
+ Requires-Dist: sentry-sdk<2.0,>=1.26.0
25
+ Requires-Dist: whitenoise<7.0,>=5.2
26
+ Description-Content-Type: text/markdown
27
+
28
+ # apis_acdhch_default_settings
29
+
30
+ Default settings for [APIS](https://github.com/acdh-oeaw/apis-core-rdf/) instances hosted at the ACDH-CH at the OEAW.
@@ -0,0 +1,42 @@
1
+ import os
2
+
3
+ from apis_core.utils.autocomplete import (
4
+ ExternalAutocomplete,
5
+ TypeSenseAutocompleteAdapter,
6
+ LobidAutocompleteAdapter,
7
+ )
8
+
9
+
10
+ class E53_PlaceExternalAutocomplete(ExternalAutocomplete):
11
+ adapters = [
12
+ TypeSenseAutocompleteAdapter(
13
+ collections=[
14
+ "prosnet-wikidata-place-index",
15
+ "prosnet-geonames-place-index",
16
+ ],
17
+ token=os.getenv("TYPESENSE_TOKEN", None),
18
+ server=os.getenv("TYPESENSE_SERVER", None),
19
+ ),
20
+ LobidAutocompleteAdapter(
21
+ params={
22
+ "filter": "type:PlaceOrGeographicName",
23
+ "format": "json:preferredName",
24
+ }
25
+ ),
26
+ ]
27
+
28
+
29
+ class E21_PersonExternalAutocomplete(ExternalAutocomplete):
30
+ adapters = [
31
+ TypeSenseAutocompleteAdapter(
32
+ collections="prosnet-wikidata-person-index",
33
+ token=os.getenv("TYPESENSE_TOKEN", None),
34
+ server=os.getenv("TYPESENSE_SERVER", None),
35
+ ),
36
+ LobidAutocompleteAdapter(
37
+ params={
38
+ "filter": "type:Person",
39
+ "format": "json:preferredName,professionOrOccupation",
40
+ }
41
+ ),
42
+ ]
@@ -29,8 +29,6 @@ SECRET_KEY = os.environ.get("SECRET_KEY", get_random_secret_key())
29
29
  BASE_DIR = Path(__file__).resolve().parent.parent
30
30
 
31
31
  # Application definition
32
- # put apis_override_select2js at the beginning of the list
33
- # to make its static files weigh more than from the other apps
34
32
  INSTALLED_APPS = [
35
33
  "dal",
36
34
  "dal_select2",
@@ -190,6 +188,7 @@ APIS_NEXT_PREV = True
190
188
  APIS_LIST_VIEWS_ALLOWED = False
191
189
  APIS_DETAIL_VIEWS_ALLOWED = False
192
190
  SHARED_URL = "https://shared.acdh.oeaw.ac.at/"
191
+ ADDITIONAL_MODULE_LOOKUP_PATHS = ["apis_acdhch_default_settings"]
193
192
 
194
193
  # django-allow-cidr settings
195
194
  # https://github.com/mozmeao/django-allow-cidr
@@ -1,5 +1,11 @@
1
1
  {% extends "base.html" %}
2
2
  {% load i18n %}
3
+
4
+ {% block meta %}
5
+ {{ block.super }}
6
+ <meta name="monitoring" content="Icinga Check">
7
+ {% endblock meta %}
8
+
3
9
  {% block imprint %}
4
10
  {% url "imprint" as imprint_url %}
5
11
  {% if imprint_url %}<a href="{{ imprint_url }}">{% translate "Imprint" %}</a>{% endif %}
@@ -0,0 +1,32 @@
1
+ [project]
2
+ name = "apis-acdhch-default-settings"
3
+ version = "2.5.0"
4
+ description = "Default settings for APIS instances at the ACDH-CH"
5
+ readme = "README.md"
6
+ requires-python = ">=3.11"
7
+ authors = [{ name = "Birger Schacht", email = "birger.schacht@oeaw.ac.at" }]
8
+ license = "MIT"
9
+ dependencies = [
10
+ "sentry-sdk>=1.26.0,<2.0",
11
+ "dj-database-url>=2.0.0,<3.0",
12
+ "django-allow-cidr>=0.6,<0.8",
13
+ "django-csp>=3.7,<4.0",
14
+ "whitenoise>=5.2,<7.0",
15
+ "django-auth-ldap>=4.6.0,<5.0",
16
+ "opentelemetry-instrumentation-asgi",
17
+ "opentelemetry-instrumentation-wsgi",
18
+ "opentelemetry-instrumentation-django",
19
+ "opentelemetry-instrumentation-logging",
20
+ "opentelemetry-instrumentation-psycopg2",
21
+ "opentelemetry-exporter-otlp",
22
+ "opentelemetry-distro",
23
+ "django-removals>=1.0.5,<=2.0",
24
+ ]
25
+ [project.urls]
26
+ source = "https://github.com/acdh-oeaw/apis-acdhch-default-settings"
27
+ changelog = "https://github.com/acdh-oeaw/apis-acdhch-default-settings/blob/main/CHANGELOG.md"
28
+ issues = "https://github.com/acdh-oeaw/apis-acdhch-default-settings/issues"
29
+
30
+ [build-system]
31
+ requires = ["hatchling"]
32
+ build-backend = "hatchling.build"
@@ -1,33 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: apis-acdhch-default-settings
3
- Version: 2.3.1
4
- Summary: Default settings for APIS instances at the ACDH-CH
5
- License: MIT
6
- Author: Birger Schacht
7
- Author-email: birger.schacht@oeaw.ac.at
8
- Requires-Python: >=3.11,<4.0
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Classifier: Programming Language :: Python :: 3.13
14
- Requires-Dist: dj-database-url (>=2.0.0,<3.0.0)
15
- Requires-Dist: django-allow-cidr (>=0.6,<0.8)
16
- Requires-Dist: django-auth-ldap (>=4.6.0,<5.0.0)
17
- Requires-Dist: django-csp (>=3.7,<4.0)
18
- Requires-Dist: django-removals (>=1.0.5,<2.0.0)
19
- Requires-Dist: opentelemetry-distro
20
- Requires-Dist: opentelemetry-exporter-otlp
21
- Requires-Dist: opentelemetry-instrumentation-asgi
22
- Requires-Dist: opentelemetry-instrumentation-django
23
- Requires-Dist: opentelemetry-instrumentation-logging
24
- Requires-Dist: opentelemetry-instrumentation-psycopg2
25
- Requires-Dist: opentelemetry-instrumentation-wsgi
26
- Requires-Dist: sentry-sdk (>=1.26.0,<2.0.0)
27
- Requires-Dist: whitenoise (>=5.2,<7.0)
28
- Description-Content-Type: text/markdown
29
-
30
- # apis_acdhch_default_settings
31
-
32
- Default settings for [APIS](https://github.com/acdh-oeaw/apis-core-rdf/) instances hosted at the ACDH-CH at the OEAW.
33
-
@@ -1,28 +0,0 @@
1
- [tool.poetry]
2
- name = "apis-acdhch-default-settings"
3
- version = "2.3.1"
4
- description = "Default settings for APIS instances at the ACDH-CH"
5
- authors = ["Birger Schacht <birger.schacht@oeaw.ac.at>"]
6
- license = "MIT"
7
- readme = "README.md"
8
-
9
- [tool.poetry.dependencies]
10
- python = "^3.11"
11
- sentry-sdk = "^1.26.0"
12
- dj-database-url = "^2.0.0"
13
- django-allow-cidr = ">=0.6,<0.8"
14
- django-csp = "^3.7"
15
- whitenoise = ">=5.2,<7.0"
16
- django-auth-ldap = "^4.6.0"
17
- opentelemetry-instrumentation-asgi = "*"
18
- opentelemetry-instrumentation-wsgi = "*"
19
- opentelemetry-instrumentation-django = "*"
20
- opentelemetry-instrumentation-logging = "*"
21
- opentelemetry-instrumentation-psycopg2 = "*"
22
- opentelemetry-exporter-otlp = "*"
23
- opentelemetry-distro = "*"
24
- django-removals = "^1.0.5"
25
-
26
- [build-system]
27
- requires = ["poetry-core>=1.0.0"]
28
- build-backend = "poetry.core.masonry.api"