Skip to main content

Allow to override templates from admin interface

Project description

build status https://badge.fury.io/py/django-dbtemplate.svg

With django-dbtemplate your users may override templates from admin interface. Main purpose of this project - allow admin users to override email templates.

Installation

  1. Install package

    pip install django-dbtemplate
    
  2. Add “dbtempalte” and “django.contrib.admindocs” to INSTALLED_APPS

    INSTALLED_APPS = (
        ...
        'dbtemplate',
        'django.contrib.admindocs',
        ...
    )
    
  3. Add loader “dbtemplate.loader.DatabaseLoader” to TEMPLATE_LOADERS.

For production deployments, always use cached template loader to awoid unnecessary database queries.

Project details


Download files

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

Source Distributions

django-dbtemplate-0.4.2.zip (22.1 kB view hashes)

Uploaded source

django-dbtemplate-0.4.2.tar.gz (12.8 kB view hashes)

Uploaded source

django-dbtemplate-0.4.2.tar.bz2 (11.1 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page