mirror of
				https://github.com/ComputerScienceHouse/proxstar.git
				synced 2025-03-09 15:40:09 +00:00 
			
		
		
		
	Use config.py for rqsettings
Move `config.local.py` to `config_local.py`, since `.` is invalid in filenames for imports
This commit is contained in:
		
							parent
							
								
									c80b240497
								
							
						
					
					
						commit
						b95e446857
					
				
					 3 changed files with 10 additions and 4 deletions
				
			
		|  | @ -3,7 +3,12 @@ import os | |||
| import sentry_sdk | ||||
| from sentry_sdk.integrations.rq import RqIntegration | ||||
| 
 | ||||
| if os.path.exists('config_local.py'): | ||||
|     import config_local as config | ||||
| else: | ||||
|     import config | ||||
| 
 | ||||
| sentry_sdk.init( | ||||
|     os.environ.get('PROXSTAR_SENTRY_DSN'), | ||||
|     config.SENTRY_DSN, | ||||
|     integrations=[RqIntegration()] | ||||
| ) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue