Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Django TemplateLoaderWithPriorities

A django template loader that allows you to control the order which the template dirs (filesystem directories or apps’ template directories) are resolved in.

Useful when you want to override third party apps templates.

Installation and use

Get templateloaderwithpriorities from pypy or github:

$ pip install django-templateloaderwithpriorities

or:

$ pip install -e git+git://github.com/qubird/django-templateloaderwithpriorities#egg=templateloaderwithpriorities

Once installed, put the loader on top of settings.TEMPLATE_LOADERS:

TEMPLATE_LOADERS = ('templateloaderwithpriorities.Loader', ) + TEMPLATE_LOADERS

Be sure that it’s the first item of TEMPLATE_LOADERS, else your priorities will be ignored.

Then add TEMPLATE_LOADER_PRIORITIES to your settings.py:

TEMPLATE_LOADER_PRIORITIES = [
    'my.app',
    '/path/to/my/custom/templates'
]

The loader searches for templates in the given order, looking for the templates directory if the item is an app, or the directory itself if the item is an absolute path.

First come, first served.

Metadata

Release files for django-templateloaderwithpriorities 1.0dev

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-templateloaderwithpriorities 1.0dev
File Size Uploaded Provenance
django-templateloaderwithpriorities-1.0dev.tar.gz 3.1 kB Without provenance Details

Release files / django-templateloaderwithpriorities-1.0dev.tar.gz

Download URL django-templateloaderwithpriorities-1.0dev.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1beb09177df890dadd18245e80bc58e3a24f028f7442d21bcbe01bbe577e952e
BLAKE2b-256 checksum
How to use checksums
1107d6432ccfc44b47d249c22c5ae1234e90226e3c1405ef1382f6a344990ec9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-templateloaderwithpriorities 1.0dev

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page