<commit_before>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:

.. code-block:: python

    # settings.py
    INSTALLED_APPS = [
        ...

        'lazy_setting'
    ]


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

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

.. code-block:: django

    {% load lazy_setting %}
    <span class="message">{% lz 'SETTING_KEY' %}</span>
    <span class="other">{% lz 'SECRET_KEY' %}</span>
<commit_msg>Update code block<commit_after>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>
```
{'fraction_non_alphanumeric': 0.193503800967519, 'fraction_numerical': 0.0, 'mean_word_length': 2.6751269035532994, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5053296', 'n_tokens_mistral': 440, 'n_tokens_neox': 409, 'n_words': 150}