mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	Update settings.py
This commit is contained in:
		
							parent
							
								
									c414de9c35
								
							
						
					
					
						commit
						932a285b82
					
				@ -347,9 +347,10 @@ if os.getenv("PAPERLESS_DBHOST"):
 | 
				
			|||||||
    if os.getenv("PAPERLESS_DBENGINE") == "mariadb":
 | 
					    if os.getenv("PAPERLESS_DBENGINE") == "mariadb":
 | 
				
			||||||
        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.
 | 
					
 | 
				
			||||||
        #https://docs.djangoproject.com/en/4.1/ref/checks/#database
 | 
					        # Silence Django erros on old MariaDB versions where VARCHAR were limited to 255 chars.
 | 
				
			||||||
        #https://mariadb.com/kb/en/innodb-system-variables/#innodb_large_prefix
 | 
					        # 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"]
 | 
					        SILENCED_SYSTEM_CHECKS = ["mysql.W003"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    else:  # Default to PostgresDB
 | 
					    else:  # Default to PostgresDB
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user