django-lazy-settings

An easy way to use settings variable in django template.


Keywords
django, settings
License
Other
Install
pip install django-lazy-settings==1.0

Documentation

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 lazy_setting app to your installed apps.

Example:

    # settings.py
    INSTALLED_APPS = [
        ...

        'lazy_setting'
    ]

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>