Skip to main content
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``


Configuration
-------------

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

Example:

```python

# settings.py
INSTALLED_APPS = [
...

'lazy_setting'
]
```

Usage examples
--------------

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

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

Release files for django-lazy-settings 1.0

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-lazy-settings 1.0
File Size Uploaded
django-lazy-settings-1.0.zip 3.2 kB Details

Release files / django-lazy-settings-1.0.zip

Download URL django-lazy-settings-1.0.zip
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7d977e47bda93e4d7b59e7fccd47747b5c16b6ea531947240339a45966df056f
BLAKE2b-256 checksum
How to use checksums
a20d089b57251e283d82553b8282d3447d6ad1364dce7d799fcbd3bca01f7394
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

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