Django Common Context Processors
Django Common Context Processors provides useful shortcuts for developing Django projects.
To use it, put in TEMPLATE_CONTEXT_PROCESSORS:
TEMPLATE_CONTEXT_PROCESSORS = (
#...
'common_context.context_processors.site',
'common_context.context_processors.settings',
#...
If you use Django 1.8+, set the context_processors option in the OPTIONS of a DjangoTemplates backend instead (see here).
Then in any page if you need to print the Site Name use:
{{ site.name }}
Or if you need to get the value of a Django Settings parameter:
{{ settings.ANY_SETTINGS_VALUE }}
About
This sources are available in https://github.com/mrsarm/django-common-context
Author: Mariano Ruiz <mrsarm@gmail.com>
License: LGPL-3 (C) 2014-2015
Metadata
Release files for django_common_context 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_common_context-0.1.0.tar.gz | 16.5 kB | Without provenance | Details for django_common_context-0.1.0.tar.gz |
Release files / django_common_context-0.1.0.tar.gz
| Download URL | django_common_context-0.1.0.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a353f64f28e85b6ee731d7e968f32f1d5f86681f2581a5fdf0a39f72111874db
|
|
BLAKE2b-256 checksum How to use checksums |
b273408b68df5a1dfaec92424d1205f8a47027825b0e3529cc4e7008d27b14ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django_common_context 0.1.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.