2024-05-30 11:06:23 +05:30
|
|
|
"""
|
2024-05-31 09:11:29 +05:30
|
|
|
This module extends the Django settings related to templates to include a
|
2024-05-30 11:06:23 +05:30
|
|
|
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
|
2024-05-30 11:06:23 +05:30
|
|
|
custom context processor path to it.
|
|
|
|
|
"""
|
2024-05-31 09:11:29 +05:30
|
|
|
|
2024-05-30 11:06:23 +05:30
|
|
|
from horilla.settings import TEMPLATES
|
|
|
|
|
|
|
|
|
|
TEMPLATES[0]["OPTIONS"]["context_processors"].append(
|
|
|
|
|
"biometric.context_processors.biometric_is_installed",
|
|
|
|
|
)
|