aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/users/context_processors.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-05-13 17:26:25 +0100
committerMatthew Lemon <y@yulqen.org>2024-05-13 17:26:25 +0100
commitefbbd480ddc62e695123d31c31d233b0df5155bd (patch)
treebc2fb465edd5050d83c97f280b1aac8e023fe3e5 /pyblackbird_cc/users/context_processors.py
After first pre-commit processing
Diffstat (limited to 'pyblackbird_cc/users/context_processors.py')
-rw-r--r--pyblackbird_cc/users/context_processors.py8
1 files changed, 8 insertions, 0 deletions
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,
+ }