Files
ihrm/biometric/settings.py

13 lines
402 B
Python
Raw Normal View History

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