apis-acdhch-default-settings 2.1.0__tar.gz → 2.2.1__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.1.0
3
+ Version: 2.2.1
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
@@ -32,7 +32,6 @@ BASE_DIR = Path(__file__).resolve().parent.parent
32
32
  # put apis_override_select2js at the beginning of the list
33
33
  # to make its static files weigh more than from the other apps
34
34
  INSTALLED_APPS = [
35
- "apis_override_select2js",
36
35
  "dal",
37
36
  "dal_select2",
38
37
  "django.contrib.admin",
@@ -50,6 +49,7 @@ INSTALLED_APPS = [
50
49
  "rest_framework",
51
50
  "apis_ontology",
52
51
  "apis_acdhch_default_settings",
52
+ "apis_core.relations",
53
53
  "apis_core.apis_entities",
54
54
  "apis_core.apis_metainfo",
55
55
  "apis_core.apis_vocabularies",
@@ -86,6 +86,7 @@ CSP_DEFAULT_SRC = (
86
86
  "unpkg.com",
87
87
  "*.openstreetmap.org",
88
88
  )
89
+ CSP_IMG_SRC = ["'self'", "*.acdh.oeaw.ac.at", "data:"]
89
90
 
90
91
  # django-crispy-forms settings
91
92
  # https://django-crispy-forms.readthedocs.io/en/latest/install.html#template-packs
@@ -177,7 +178,7 @@ MEDIA_URL = "/media/"
177
178
 
178
179
  # django-tables2 setting
179
180
  # https://django-tables2.readthedocs.io/en/latest/pages/custom-rendering.html#available-templates
180
- DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap5.html"
181
+ DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap5-responsive.html"
181
182
 
182
183
  # apis-core-rdf settings
183
184
  if os.environ.get("PUBLIC_URL"):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "apis-acdhch-default-settings"
3
- version = "2.1.0"
3
+ version = "2.2.1"
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 = "*"