From efbbd480ddc62e695123d31c31d233b0df5155bd Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 13 May 2024 17:26:25 +0100 Subject: After first pre-commit processing --- pyblackbird_cc/users/context_processors.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pyblackbird_cc/users/context_processors.py (limited to 'pyblackbird_cc/users/context_processors.py') diff --git a/pyblackbird_cc/users/context_processors.py b/pyblackbird_cc/users/context_processors.py new file mode 100644 index 0000000..e2633ae --- /dev/null +++ b/pyblackbird_cc/users/context_processors.py @@ -0,0 +1,8 @@ +from django.conf import settings + + +def allauth_settings(request): + """Expose some settings from django-allauth in templates.""" + return { + "ACCOUNT_ALLOW_REGISTRATION": settings.ACCOUNT_ALLOW_REGISTRATION, + } -- cgit v1.2.3