Correct the way we get ALLOWED_HOSTS
This commit is contained in:
		
					parent
					
						
							
								5ec63d8536
							
						
					
				
			
			
				commit
				
					
						876567f933
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -32,10 +32,10 @@ AUTH_LDAP_START_TLS = os.environ.get('LDAP_USE_TLS', False)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 | 
					BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost')
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
DEBUG = os.environ.get('DEBUG', False)
 | 
					DEBUG = os.environ.get('DEBUG', False)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost').split(",")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
INSTALLED_APPS = [
 | 
					INSTALLED_APPS = [
 | 
				
			||||||
    'django.contrib.admin',
 | 
					    'django.contrib.admin',
 | 
				
			||||||
    'django.contrib.auth',
 | 
					    'django.contrib.auth',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue