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

django_dbtemplate-0.4.2-py2.py3-none-any.whl (20.2 kB view hashes)

Uploaded Python 2 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