paperless-ngx/src/documents/context_processors.py
2023-09-30 18:17:42 -07:00

9 lines
213 B
Python

from django.conf import settings as django_settings
def settings(request):
return {
"EMAIL_ENABLED": django_settings.EMAIL_HOST != "localhost"
or django_settings.EMAIL_HOST_USER != "",
}