Skip to main content

No project description provided

Project description

Django ACDH-CH functionality

Provide some default functionality for ACDH-CH Django instances.

Howto use

Install the app using your personal choice of Python package manager. Add the app to your Django's settings.py

INSTALLED_APPS += ["django_acdhch_functions"]

Call the django_acdhch_functions views from your urls.py:

urlpatterns += [path("", include("django_acdhch_functions.urls")),]

Functionality

Imprint

Provides an imprint route on /imprint. You have to set a REDMINE_ID in settings.

Matomo

Provides a {% matomo %} templatetag. You have to {% load django_adchch_functions %} to use it. It requires the variables matomo_url and matomo_id to be set in the PROJECT_METADATA dict:

PROJECT_METADATA = {
    "matmom_url": "https://my.matomo.instance.tld",
    "matmo_id": 23,
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_acdhch_functions-0.1.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

django_acdhch_functions-0.1.3-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page