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


Download files

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

Source Distribution

django-apptemplates-0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file django-apptemplates-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-apptemplates-0.0.1.tar.gz
Algorithm Hash digest
SHA256 37d6d560faa1d6e2d1abfdef80360722a29434f0879fd3a08293cda7ce103adb
MD5 87c2811a183f6a4e837b971cf16f5250
BLAKE2b-256 857a4457681d0d4db0930976e574505c9e50bec2d72a1500eb4d3fa2412c3269

See more details on using hashes here.

Provenance

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