mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Prettify code, change ENV variable name
This commit is contained in:
		
							parent
							
								
									74c5537979
								
							
						
					
					
						commit
						69466e712b
					
				@ -83,5 +83,5 @@ PAPERLESS_SHARED_SECRET=""
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# You can specify where you want the SQLite database to be stored instead of 
 | 
					# You can specify where you want the SQLite database to be stored instead of 
 | 
				
			||||||
# the default location
 | 
					# the default location
 | 
				
			||||||
#PAPERLESS_DBLOCATION=/path/to/database/file
 | 
					#PAPERLESS_DBDIR=/path/to/database/file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -95,7 +95,13 @@ WSGI_APPLICATION = 'paperless.wsgi.application'
 | 
				
			|||||||
DATABASES = {
 | 
					DATABASES = {
 | 
				
			||||||
    "default": {
 | 
					    "default": {
 | 
				
			||||||
        "ENGINE": "django.db.backends.sqlite3",
 | 
					        "ENGINE": "django.db.backends.sqlite3",
 | 
				
			||||||
        "NAME": os.path.join(os.getenv("PAPERLESS_DBLOCATION",os.path.join(BASE_DIR, "..", "data")), "db.sqlite3")
 | 
					        "NAME": os.path.join(
 | 
				
			||||||
 | 
					                    os.getenv(
 | 
				
			||||||
 | 
					                        "PAPERLESS_DBDIR",
 | 
				
			||||||
 | 
					                        os.path.join(BASE_DIR, "..", "data")
 | 
				
			||||||
 | 
					                    ),
 | 
				
			||||||
 | 
					                    "db.sqlite3"
 | 
				
			||||||
 | 
					                )
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user