forked from rc/aircox
work on player: integrate vuejs + noscript; remove TemplateMixin for Component and ExposedData; rewrite most of the player; clean up files; do lot of other things
This commit is contained in:
@ -2,19 +2,21 @@ import os
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
def ensure (key, default):
|
||||
globals()[key] = getattr(settings, key, default)
|
||||
|
||||
|
||||
ensure('AIRCOX_CMS_BLEACH_COMMENT_TAGS', [
|
||||
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', {
|
||||
AIRCOX_CMS_BLEACH_COMMENT_ATTRS = {
|
||||
'*': ['title'],
|
||||
'a': ['href', 'rel'],
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
# import settings
|
||||
for k, v in settings.__dict__.items():
|
||||
if not k.startswith('__') and k not in globals():
|
||||
globals()[k] = v
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user