healthchecks_healthchecks/hc/payments/context_processors.py
2023-10-26 08:35:06 +03:00

9 lines
213 B
Python

from __future__ import annotations
from django.conf import settings
from django.http import HttpRequest
def payments(request: HttpRequest) -> dict[str, bool]:
return {"show_pricing": settings.USE_PAYMENTS}