mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
add some more checks.
This commit is contained in:
@@ -67,3 +67,16 @@ def binaries_check(app_configs, **kwargs):
|
||||
check_messages.append(Warning(error.format(binary), hint))
|
||||
|
||||
return check_messages
|
||||
|
||||
|
||||
@register()
|
||||
def debug_mode_check(app_configs, **kwargs):
|
||||
if settings.DEBUG:
|
||||
return [Warning("DEBUG mode is enabled. Disable Debug mode. "
|
||||
"This is a serious security "
|
||||
"issue, since it puts security overides in place which"
|
||||
"are meant to be only used during development. This"
|
||||
"also means that paperless will tell anyone various"
|
||||
"debugging information when something goes wrong.")]
|
||||
else:
|
||||
return []
|
||||
|
Reference in New Issue
Block a user