From 932a285b82199d26b13ddb7a5e20569569aba8eb Mon Sep 17 00:00:00 2001 From: Sblop <17447438+Sblop@users.noreply.github.com> Date: Fri, 28 Oct 2022 22:38:37 +0200 Subject: [PATCH] Update settings.py --- src/paperless/settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 358535e87..0d0da6cd0 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -347,9 +347,10 @@ if os.getenv("PAPERLESS_DBHOST"): if os.getenv("PAPERLESS_DBENGINE") == "mariadb": engine = "django.db.backends.mysql" options = {"read_default_file": "/etc/mysql/my.cnf", "charset": "utf8mb4"} - #Silence Django erros on old MariaDB versions where VARCHAR were limited to 255 chars. - #https://docs.djangoproject.com/en/4.1/ref/checks/#database - #https://mariadb.com/kb/en/innodb-system-variables/#innodb_large_prefix + + # Silence Django erros on old MariaDB versions where VARCHAR were limited to 255 chars. + # https://docs.djangoproject.com/en/4.1/ref/checks/#database + # https://mariadb.com/kb/en/innodb-system-variables/#innodb_large_prefix SILENCED_SYSTEM_CHECKS = ["mysql.W003"] else: # Default to PostgresDB