Skip to main content

An easy way to use settings variable in django template.

Project description

Django Lazy Settings

An easy way to use settings variable in django template.

How to install

You can also install it with: ``pip install django-lazy-settings``


Add the sr app to your installed apps and define your settings :code:`SR` variable as a dictionary.





Usage examples

Use it from your template code with ``lz`` template tag:

{% load lazy_setting %}
<span class="message">{% lz 'SETTING_KEY' %}</span>
<span class="other">{% lz 'SECRET_KEY' %}</span>

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for django-lazy-settings, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page