Update settings.py

Comment too long.
This commit is contained in:
Sblop 2022-10-28 22:51:17 +02:00 committed by Trenton H
parent 932a285b82
commit cda0a19b99

View File

@ -348,7 +348,8 @@ if os.getenv("PAPERLESS_DBHOST"):
engine = "django.db.backends.mysql" engine = "django.db.backends.mysql"
options = {"read_default_file": "/etc/mysql/my.cnf", "charset": "utf8mb4"} options = {"read_default_file": "/etc/mysql/my.cnf", "charset": "utf8mb4"}
# Silence Django erros on old MariaDB versions where VARCHAR were limited to 255 chars. # Silence Django error on old MariaDB versions.
# VARCHAR can support > 255 in modern versions
# https://docs.djangoproject.com/en/4.1/ref/checks/#database # https://docs.djangoproject.com/en/4.1/ref/checks/#database
# https://mariadb.com/kb/en/innodb-system-variables/#innodb_large_prefix # https://mariadb.com/kb/en/innodb-system-variables/#innodb_large_prefix
SILENCED_SYSTEM_CHECKS = ["mysql.W003"] SILENCED_SYSTEM_CHECKS = ["mysql.W003"]