apis-acdhch-default-settings 1.8.0__tar.gz → 2.1.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
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: apis-acdhch-default-settings
3
- Version: 1.8.0
3
+ Version: 2.1.0
4
4
  Summary: Default settings for APIS instances at the ACDH-CH
5
5
  License: MIT
6
6
  Author: Birger Schacht
@@ -44,12 +44,12 @@ 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",
52
- "apis_core.apis_relations",
53
53
  "apis_core.apis_entities",
54
54
  "apis_core.apis_metainfo",
55
55
  "apis_core.apis_vocabularies",
@@ -81,24 +81,16 @@ CSP_DEFAULT_SRC = (
81
81
  "'unsafe-inline'",
82
82
  "cdnjs.cloudflare.com",
83
83
  "cdn.jsdelivr.net",
84
- "fonts.googleapis.com",
85
84
  "ajax.googleapis.com",
86
- "cdn.rawgit.com",
87
85
  "*.acdh.oeaw.ac.at",
88
86
  "unpkg.com",
89
- "fonts.gstatic.com",
90
- "cdn.datatables.net",
91
- "code.highcharts.com",
92
- "*.acdh-dev.oeaw.ac.at",
93
- "*.acdh.oeaw.ac.at",
94
- "openstreetmap.org",
95
87
  "*.openstreetmap.org",
96
88
  )
97
- CSP_FRAME_SRC = ("sennierer.github.io",)
98
89
 
99
90
  # django-crispy-forms settings
100
91
  # https://django-crispy-forms.readthedocs.io/en/latest/install.html#template-packs
101
- CRISPY_TEMPLATE_PACK = "bootstrap4"
92
+ CRISPY_TEMPLATE_PACK = "bootstrap5"
93
+ CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
102
94
 
103
95
  # django-rest-framework settings
104
96
  # https://www.django-rest-framework.org/api-guide/settings/
@@ -174,7 +166,6 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
174
166
  LANGUAGE_CODE = "en"
175
167
  TIME_ZONE = "UTC"
176
168
  USE_I18N = True
177
- USE_L10N = True
178
169
  USE_TZ = True
179
170
 
180
171
  # Static files (CSS, JavaScript, Images)
@@ -186,7 +177,7 @@ MEDIA_URL = "/media/"
186
177
 
187
178
  # django-tables2 setting
188
179
  # https://django-tables2.readthedocs.io/en/latest/pages/custom-rendering.html#available-templates
189
- DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap4.html"
180
+ DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap5.html"
190
181
 
191
182
  # apis-core-rdf settings
192
183
  if os.environ.get("PUBLIC_URL"):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "apis-acdhch-default-settings"
3
- version = "1.8.0"
3
+ version = "2.1.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"