Learning-Management-System/lms/users/context_processors.py
Ahmed Nagi e58c9c1f71 Update
2025-01-10 19:54:55 +02:00

8 lines
225 B
Python

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,
}