skip to navigation
skip to content

Not Logged In

django-apptemplates 0.0.1

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

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)

 
File Type Py Version Uploaded on Size
django-apptemplates-0.0.1.tar.gz (md5) Source 2012-07-08 2KB
  • Downloads (All Versions):
  • 99 downloads in the last day
  • 663 downloads in the last week
  • 2563 downloads in the last month