small fixes

This commit is contained in:
Jonas Winkler 2020-11-18 18:39:37 +01:00
parent 6d7a6e7297
commit e59696efd4
2 changed files with 6 additions and 9 deletions

View File

@ -72,11 +72,11 @@ def binaries_check(app_configs, **kwargs):
@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.")]
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 []

View File

@ -1,8 +1,5 @@
from django.db import models
# Create your models here.
from django.db import models
import documents.models as document_models