apis-acdhch-default-settings 1.3.0__tar.gz → 1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apis-acdhch-default-settings
3
- Version: 1.3.0
3
+ Version: 1.5.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
@@ -242,6 +242,10 @@ LOGGING = {
242
242
  },
243
243
  }
244
244
 
245
+ # https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-DEBUG
246
+ if debug := os.environ.get("DJANGO_DEBUG", False):
247
+ DEBUG = debug.lower() == "true"
248
+
245
249
  # Our deployment infrastructure sets the GITLAB_ENVIRONMENT_URL to the
246
250
  # repository from which the instance is deployed. Lets reuse this
247
251
  # information to set the repository url in APIS
@@ -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 %}
@@ -17,10 +17,6 @@ urlpatterns = [
17
17
  path("admin/", admin.site.urls),
18
18
  ]
19
19
 
20
- if "webpage" in settings.INSTALLED_APPS:
21
- urlpatterns.append(path("", include("webpage.urls", namespace="webpage")))
22
- handler404 = "webpage.views.handler404"
23
-
24
20
  if "apis_bibsonomy" in settings.INSTALLED_APPS:
25
21
  urlpatterns.append(
26
22
  path("bibsonomy/", include("apis_bibsonomy.urls", namespace="bibsonomy"))
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "apis-acdhch-default-settings"
3
- version = "1.3.0"
3
+ version = "1.5.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 %}