mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	(cherry picked from commit 2fafb7f21c)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
			
			
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							af3cf62b8e
						
					
				
				
					commit
					9cebfa85df
				
			@@ -1022,8 +1022,12 @@ if SITE_URL:
 | 
			
		||||
    logger.info('Using Site URL: %s', SITE_URL)
 | 
			
		||||
 | 
			
		||||
    # Check that the site URL is valid
 | 
			
		||||
    validator = URLValidator()
 | 
			
		||||
    validator(SITE_URL)
 | 
			
		||||
    try:
 | 
			
		||||
        validator = URLValidator()
 | 
			
		||||
        validator(SITE_URL)
 | 
			
		||||
    except Exception:
 | 
			
		||||
        print(f"Invalid SITE_URL value: '{SITE_URL}'. InvenTree server cannot start.")
 | 
			
		||||
        sys.exit(-1)
 | 
			
		||||
 | 
			
		||||
# Enable or disable multi-site framework
 | 
			
		||||
SITE_MULTI = get_boolean_setting('INVENTREE_SITE_MULTI', 'site_multi', False)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user