Adds a default e-mail setting
This commit is contained in:
		
							parent
							
								
									ce1e8dd6d7
								
							
						
					
					
						commit
						bb9ac9fd67
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -24,6 +24,11 @@ DATABASES['default'].update(db_from_env) | |||
| 
 | ||||
| ALLOWED_HOSTS = [".localhost", ".herokuapp.com", ".northbaypython.org"] | ||||
| 
 | ||||
| # If DEFAULT_FROM_EMAIL is not set, email will most likely break in prod. | ||||
| from_email = os.environ.get("DJANGO_DEFAULT_FROM_EMAIL", None) | ||||
| if from_email is not None: | ||||
|     DEFAULT_FROM_EMAIL = from_email | ||||
| 
 | ||||
| # Local time zone for this installation. Choices can be found here: | ||||
| # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | ||||
| # although not all choices may be available on all operating systems. | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer