Installation

To install django-templates from git, run the following command:

pip install git+https://codeberg.org/c9moser/django-templates.git

Then add django_templates to your INSTALLED_APPS in your Django settings.

INSTALLED_APPS = [
    ...
    'django_templates',
    ...
]

For apps being able to use the BASE_TEMPLATE which allows you to set a base template globally for apps supporting it, add the django_templates.context_processors.template to your context processors in your Django settings.

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        ...
        'OPTIONS': {
            ...
            'context_processors': [
               ...
               'django_templates.context_processors.template',
               ...
            ],
        },
    },
]