Files
ihrm/biometric/settings.py
2024-05-31 09:11:29 +05:30

13 lines
402 B
Python

"""
This module extends the Django settings related to templates to include a
custom context processor for biometric functionality.
It imports the `TEMPLATES` setting from `horilla.settings` and appends a
custom context processor path to it.
"""
from horilla.settings import TEMPLATES
TEMPLATES[0]["OPTIONS"]["context_processors"].append(
"biometric.context_processors.biometric_is_installed",
)