apis-acdhch-default-settings 2.0.0__tar.gz → 2.2.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: apis-acdhch-default-settings
3
- Version: 2.0.0
3
+ Version: 2.2.0
4
4
  Summary: Default settings for APIS instances at the ACDH-CH
5
5
  License: MIT
6
6
  Author: Birger Schacht
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
13
  Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Dist: dj-database-url (>=2.0.0,<3.0.0)
15
- Requires-Dist: django-allow-cidr (>=0.6.0,<0.7.0)
15
+ Requires-Dist: django-allow-cidr (>=0.6,<0.8)
16
16
  Requires-Dist: django-auth-ldap (>=4.6.0,<5.0.0)
17
17
  Requires-Dist: django-csp (>=3.7,<4.0)
18
18
  Requires-Dist: django-removals (>=1.0.5,<2.0.0)
@@ -24,7 +24,7 @@ Requires-Dist: opentelemetry-instrumentation-logging
24
24
  Requires-Dist: opentelemetry-instrumentation-psycopg2
25
25
  Requires-Dist: opentelemetry-instrumentation-wsgi
26
26
  Requires-Dist: sentry-sdk (>=1.26.0,<2.0.0)
27
- Requires-Dist: whitenoise (>=5.2.0,<6.0.0)
27
+ Requires-Dist: whitenoise (>=5.2,<7.0)
28
28
  Description-Content-Type: text/markdown
29
29
 
30
30
  # apis_acdhch_default_settings
@@ -44,11 +44,13 @@ INSTALLED_APPS = [
44
44
  "django_removals",
45
45
  "crispy_forms",
46
46
  "crispy_bootstrap4",
47
+ "crispy_bootstrap5",
47
48
  "django_filters",
48
49
  "django_tables2",
49
50
  "rest_framework",
50
51
  "apis_ontology",
51
52
  "apis_acdhch_default_settings",
53
+ "apis_core.relations",
52
54
  "apis_core.apis_entities",
53
55
  "apis_core.apis_metainfo",
54
56
  "apis_core.apis_vocabularies",
@@ -85,10 +87,12 @@ CSP_DEFAULT_SRC = (
85
87
  "unpkg.com",
86
88
  "*.openstreetmap.org",
87
89
  )
90
+ CSP_IMG_SRC = ["'self'", "*.acdh.oeaw.ac.at", "data:"]
88
91
 
89
92
  # django-crispy-forms settings
90
93
  # https://django-crispy-forms.readthedocs.io/en/latest/install.html#template-packs
91
- CRISPY_TEMPLATE_PACK = "bootstrap4"
94
+ CRISPY_TEMPLATE_PACK = "bootstrap5"
95
+ CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
92
96
 
93
97
  # django-rest-framework settings
94
98
  # https://www.django-rest-framework.org/api-guide/settings/
@@ -175,7 +179,7 @@ MEDIA_URL = "/media/"
175
179
 
176
180
  # django-tables2 setting
177
181
  # https://django-tables2.readthedocs.io/en/latest/pages/custom-rendering.html#available-templates
178
- DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap4.html"
182
+ DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap5-responsive.html"
179
183
 
180
184
  # apis-core-rdf settings
181
185
  if os.environ.get("PUBLIC_URL"):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "apis-acdhch-default-settings"
3
- version = "2.0.0"
3
+ version = "2.2.0"
4
4
  description = "Default settings for APIS instances at the ACDH-CH"
5
5
  authors = ["Birger Schacht <birger.schacht@oeaw.ac.at>"]
6
6
  license = "MIT"
@@ -10,9 +10,9 @@ readme = "README.md"
10
10
  python = "^3.11"
11
11
  sentry-sdk = "^1.26.0"
12
12
  dj-database-url = "^2.0.0"
13
- django-allow-cidr = "^0.6.0"
13
+ django-allow-cidr = ">=0.6,<0.8"
14
14
  django-csp = "^3.7"
15
- whitenoise = "^5.2.0"
15
+ whitenoise = ">=5.2,<7.0"
16
16
  django-auth-ldap = "^4.6.0"
17
17
  opentelemetry-instrumentation-asgi = "*"
18
18
  opentelemetry-instrumentation-wsgi = "*"