forked from rc/aircox
		
	merge aircox and aircox_instance
This commit is contained in:
		
							
								
								
									
										20
									
								
								aircox_cms/settings.py
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								aircox_cms/settings.py
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
from django.conf import settings
 | 
			
		||||
 | 
			
		||||
def ensure (key, default):
 | 
			
		||||
    globals()[key] = getattr(settings, key, default)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
ensure('AIRCOX_CMS_BLEACH_COMMENT_TAGS', [
 | 
			
		||||
    'i', 'emph', 'b', 'strong', 'strike', 's',
 | 
			
		||||
    'p', 'span', 'quote','blockquote','code',
 | 
			
		||||
    'sup', 'sub', 'a',
 | 
			
		||||
])
 | 
			
		||||
 | 
			
		||||
ensure('AIRCOX_CMS_BLEACH_COMMENT_ATTRS', {
 | 
			
		||||
    '*': ['title'],
 | 
			
		||||
    'a': ['href', 'rel'],
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user