apis-acdhch-default-settings 1.2.2__tar.gz → 1.4.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.1
2
2
  Name: apis-acdhch-default-settings
3
- Version: 1.2.2
3
+ Version: 1.4.0
4
4
  Summary: Default settings for APIS instances at the ACDH-CH
5
5
  License: MIT
6
6
  Author: Birger Schacht
@@ -15,6 +15,13 @@ Requires-Dist: dj-database-url (>=2.0.0,<3.0.0)
15
15
  Requires-Dist: django-allow-cidr (>=0.6.0,<0.7.0)
16
16
  Requires-Dist: django-auth-ldap (>=4.6.0,<5.0.0)
17
17
  Requires-Dist: django-csp (>=3.7,<4.0)
18
+ Requires-Dist: opentelemetry-distro
19
+ Requires-Dist: opentelemetry-exporter-otlp
20
+ Requires-Dist: opentelemetry-instrumentation-asgi
21
+ Requires-Dist: opentelemetry-instrumentation-django
22
+ Requires-Dist: opentelemetry-instrumentation-logging
23
+ Requires-Dist: opentelemetry-instrumentation-psycopg2
24
+ Requires-Dist: opentelemetry-instrumentation-wsgi
18
25
  Requires-Dist: sentry-sdk (>=1.26.0,<2.0.0)
19
26
  Requires-Dist: whitenoise (>=5.2.0,<6.0.0)
20
27
  Description-Content-Type: text/markdown
@@ -185,7 +185,8 @@ MEDIA_URL = "/media/"
185
185
  DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap4.html"
186
186
 
187
187
  # apis-core-rdf settings
188
- APIS_BASE_URI = "TO CHANGE"
188
+ if os.environ.get("PUBLIC_URL"):
189
+ APIS_BASE_URI = os.environ.get("PUBLIC_URL")
189
190
  APIS_MIN_CHAR = 0
190
191
  APIS_NEXT_PREV = True
191
192
  APIS_LIST_VIEWS_ALLOWED = False
@@ -0,0 +1,6 @@
1
+ {% extends "base.html" %}
2
+ {% load i18n %}
3
+ {% block imprint %}
4
+ {% url "imprint" as imprint_url %}
5
+ {% if imprint_url %}<a href="{{ imprint_url }}">{% translate "Imprint" %}</a>{% endif %}
6
+ {% endblock imprint %}
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "apis-acdhch-default-settings"
3
- version = "1.2.2"
3
+ version = "1.4.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"
@@ -14,6 +14,13 @@ django-allow-cidr = "^0.6.0"
14
14
  django-csp = "^3.7"
15
15
  whitenoise = "^5.2.0"
16
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 = "*"
17
24
 
18
25
  [build-system]
19
26
  requires = ["poetry-core>=1.0.0"]
@@ -1,5 +0,0 @@
1
- {% extends "base.html" %}
2
- {% block imprint %}
3
- {% url "imprint" as imprint_url %}
4
- {% if imprint_url %}<a href="{{ imprint_url }}">Imprint | Impressum</a>{% endif %}
5
- {% endblock imprint %}