add example config
This commit is contained in:
		
							parent
							
								
									2d153027a8
								
							
						
					
					
						commit
						de5f152914
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								config.py.example
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								config.py.example
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
import os
 | 
			
		||||
import subprocess
 | 
			
		||||
 | 
			
		||||
class Config:
 | 
			
		||||
    SECRET_KEY = os.environ.get('SECRET_KEY') or subprocess.check_output(['pwgen', '20', '1'])
 | 
			
		||||
    DATA_DIR   = os.environ.get('DATA_DIR') or '/home/orange/devel/prolefeeder/tmp'
 | 
			
		||||
    MAX_LENGTH = os.environ.get('MAX_LENGTH') or 180
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue