Skip to main content

Django template loader that allows you to load template from a specific application

Project description

djang-apptemplates is a Django template loader that allows you to load a template from a specific application. This allows you to both extend and override a template at the same time. The default Django loaders require you to copy the entire template you want to override, even if you only want to override one small block.

Template usage example (extend and override Django admin base template):

{% extends "admin:admin/base.html" %}

Settings:

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
    'apptemplates.Loader',
)

Based on: http://djangosnippets.org/snippets/1376/

The original Author of this python package is: Konrad Wojas (konrad.wojas@jibecompany.com)

Project details


Release history Release notifications

History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.1.1

History Node

1.1

History Node

1.0

This version
History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-apptemplates-0.0.1.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Jul 8, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page