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:
bkfox
2018-02-08 06:46:42 +01:00
parent 343279a777
commit d80322dd15
36 changed files with 12711 additions and 1740 deletions

View File

@ -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