update django settings for local and production
This commit is contained in:
		
					parent
					
						
							
								18c75cf00e
							
						
					
				
			
			
				commit
				
					
						105dad3b9f
					
				
			
		
					 4 changed files with 430 additions and 427 deletions
				
			
		| 
						 | 
				
			
			@ -40,7 +40,6 @@ LOGIN_REDIRECT_URL = None
 | 
			
		|||
 | 
			
		||||
EMAIL_HOST = "localhost"
 | 
			
		||||
EMAIL_PORT = 25
 | 
			
		||||
 | 
			
		||||
SECRET_KEY = env('DJANGO_SECRET_KEY')
 | 
			
		||||
 | 
			
		||||
# Application definition
 | 
			
		||||
| 
						 | 
				
			
			@ -430,6 +429,11 @@ REGISTRATION_MESSAGE = {'subject': "Validation mail",
 | 
			
		|||
                        'message': 'Please validate Your account under this link http://localhost:8000/en-us/validate/{}',
 | 
			
		||||
                        'from': 'test@test.com'}
 | 
			
		||||
 | 
			
		||||
DEBUG = True
 | 
			
		||||
 | 
			
		||||
if DEBUG:
 | 
			
		||||
    from .local import *
 | 
			
		||||
else:
 | 
			
		||||
    from .prod import *
 | 
			
		||||
#dont migrate test
 | 
			
		||||
# SOUTH_TESTS_MIGRATE = False
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue